Skip to content

Helps developers maintain consistent coding styles between different editors

License

Notifications You must be signed in to change notification settings

dbachko/atom-editorconfig

 
 

Repository files navigation

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

About

Helps developers maintain consistent coding styles between different editors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 59.4%
  • CoffeeScript 40.6%