Skip to content

Sublime Text extension for formatting code with dprint.

License

Notifications You must be signed in to change notification settings

watsom27/dprint-sublime

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dprint - Sublime Text Plugin

Sublime Text formatting extension for dprint—a pluggable and configurable formatting platform.

Setup

  1. Install dprint's CLI.
  2. Install Sublime Text plugin via Package Control
  3. Run dprint init in the root directory of your repository to create a configuration file.

Features

Formats code in the editor using dprint.

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)

About

Sublime Text extension for formatting code with dprint.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%