Skip to content
Helps developers maintain consistent coding styles between different editors
JavaScript CoffeeScript
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 134 commits behind sindresorhus:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
commands
grammars
settings
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
screenshot.png

readme.md

EditorConfig

EditorConfig helps developers maintain consistent coding styles between different editors

Install

$ apm install editorconfig

Or, Settings → Install → Search for editorconfig

Getting started

See the EditorConfig documentation.

Supported properties

  • root
  • indent_style
  • indent_size
  • charset (supported values: latin1, utf-8, utf-16be, utf-16le)
  • end_of_line (supported values: lf, crlf)

Features

  • Applies the above settings from your .editorconfig file
  • Syntax highlights .editorconfig files
  • Ability to generate an .editorconfig file based on the current settings

Example file

root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true # doesn't work yet
insert_final_newline = true # doesn't work yet

Generate config

You can generate an .editorconfig file based on the current setting by opening the Command Palette and choosing EditorConfig: Generate Config.

License

MIT © Sindre Sorhus

You can’t perform that action at this time.