All Projects → sindresorhus → Editorconfig Sublime

sindresorhus / Editorconfig Sublime

Licence: mit
Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Editorconfig Sublime

sublime-text
Subime Text 相关资源收集整理
Stars: ✭ 62 (-96.46%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (-98.4%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
sublime-live-server
🌍️ Launch a Development Server directly from Sublime Text
Stars: ✭ 49 (-97.2%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
sublime-profiles
Profile Switcher for Sublime Text
Stars: ✭ 59 (-96.63%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
CSSFontFamily
CSSFontFamily is a Sublime Text plugin with a collection of font stacks autocomplete.
Stars: ✭ 15 (-99.14%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
sublime-import-helper
A Sublime Text Plugin that helps you to import your modules.
Stars: ✭ 69 (-96.05%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
zephir-sublime
Sublime Text syntax highlighting for for Zephir
Stars: ✭ 41 (-97.66%)
Mutual labels:  sublime-text, sublime-package, sublime-text-plugin
sublime-better-ruby
Sublime Text Ruby package (snippets, builder, syntax highlight)
Stars: ✭ 33 (-98.11%)
Mutual labels:  sublime-text, sublime-text-plugin
CodeChampion
Plays epic sound clips when you write epic code on sublime Text!
Stars: ✭ 30 (-98.28%)
Mutual labels:  sublime-text, sublime-text-plugin
Carbonsublime
🚀 A Sublime Text 3 Plugin for Carbon. (https://carbon.now.sh)
Stars: ✭ 104 (-94.05%)
Mutual labels:  sublime-text, sublime-package
Assembly-Syntax-Definition
This is the greatest syntax definition of All Time
Stars: ✭ 23 (-98.68%)
Mutual labels:  sublime-text, sublime-package
SublimeXssEncode
Converts characters from one encoding to another using a transformation.
Stars: ✭ 37 (-97.88%)
Mutual labels:  sublime-text, sublime-text-plugin
Schemr
A color scheme selector for Sublime Text.
Stars: ✭ 140 (-92%)
Mutual labels:  sublime-text, sublime-package
Sublimeallautocomplete
Extend Sublime autocompletion to find matches in all open files of the current window
Stars: ✭ 906 (-48.2%)
Mutual labels:  sublime-text, sublime-package
Processing Sublime
A Sublime Text package for the programming language Processing
Stars: ✭ 447 (-74.44%)
Mutual labels:  sublime-text, sublime-package
Themr
A UI theme selector for Sublime Text.
Stars: ✭ 112 (-93.6%)
Mutual labels:  sublime-text, sublime-package
Chromerepl
A Sublime Text plugin to execute JavaScript in Google Chrome
Stars: ✭ 347 (-80.16%)
Mutual labels:  sublime-text, sublime-package
Sublimelinter Contrib Xo
SublimeLinter plugin for XO
Stars: ✭ 53 (-96.97%)
Mutual labels:  sublime-text, sublime-package
SaneSnippets
Sublime Text snippets optimized for humans, not robots
Stars: ✭ 59 (-96.63%)
Mutual labels:  sublime-text, sublime-text-plugin
Sublime zk
A SublimeText3 package featuring ID based wiki style links, and #tags, intended for zettelkasten method users. Loaded with tons of features like inline image display, sophisticated tag search, note transclusion features, support for note templates, bibliography support, support for multiple panes, etc. to make working in your Zettelkasten a joy 😄.
Stars: ✭ 408 (-76.67%)
Mutual labels:  sublime-text, sublime-package

EditorConfig

EditorConfig helps developers maintain consistent coding styles between different editors

Install

Install EditorConfig with Package Control and restart Sublime.

Getting started

See the EditorConfig site for documentation.

Supported properties

  • root
  • indent_style
  • indent_size
  • end_of_line
  • charset
  • trim_trailing_whitespace
  • insert_final_newline

Explanation of the properties can be found on the EditorConfig site.

The tab_width property is intentionally not supported.

Example file

My recommended default settings

root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

Tips

EditorConfig snippet

If you can't remember all settings managed by the EditorConfig file, you'll love the editorconfig snippet.

Just type editorconfig + tab, and your editor will focus on the first setting's value (indent_style = lf). You can change the value, if you want, and jump to the next setting's value by hitting tab and so on. Settings are somewhat autocompleted, and if you don't remember all possible values, simply remove the setting value to see them all as a comment.

You can be in a context where editorconfig + tab trigger another snippet. In that case, simply use Goto anywhere (Ctrl + P on Linux/Windows or + P on macOS), type editorconfig, select Snippet: editorconfig and hit Enter.

View active config

The active config is printed in the Sublime console.

Trailing whitespace

Even though there is a trim_trailing_whitespace property. I would still recommend you set "draw_white_space": "all" and/or "trim_trailing_white_space_on_save": true in your Sublime preferences to prevent you from accidentally committing whitespace garbage whenever a project is missing a .editorconfig file.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].