https://github.com/dprint/dprint-sublime
Sublime Text extension for formatting code with dprint.
https://github.com/dprint/dprint-sublime
Last synced: over 1 year ago
JSON representation
Sublime Text extension for formatting code with dprint.
- Host: GitHub
- URL: https://github.com/dprint/dprint-sublime
- Owner: dprint
- License: mit
- Created: 2020-06-21T23:25:19.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2022-12-09T11:50:58.000Z (over 3 years ago)
- Last Synced: 2024-06-19T00:38:04.871Z (about 2 years ago)
- Language: Python
- Size: 4.88 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dprint - Sublime Text Plugin
Sublime Text formatting extension for [dprint](https://dprint.dev)—a pluggable and configurable formatting platform.
## Setup
1. Install [dprint's CLI](https://dprint.dev/install).
2. Install Sublime Text plugin via [Package Control](https://packagecontrol.io/packages/dprint)
3. Run `dprint init` in the root directory of your repository to create a configuration file.
## Features
Formats code in the editor using [dprint](https://dprint.dev).
Plugins are currently resolved based on the configuration file found based on the current file (in any ancestor directory or ancestor `config` sub directory).
## Commands
* `dprint_fmt` - Formats the code being edited.
## Slower
Note, this plugin is slower than the one available for vscode because it will startup the dprint process each time for every format. It could be made faster if someone wants to implement it using the editor-service API: https://github.com/dprint/dprint/blob/main/docs/editor-extension-development.md (wait for editor-service schema v5 to be finalized though)