Skip to content
EditorConfig extension for Visual Studio Code
TypeScript
Branch: master
Clone or download
This branch is 299 commits ahead, 9 commits behind microsoft:master.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Fix publish Dec 13, 2019
.vscode update project to new vscode API, yeoman generator templates Aug 10, 2019
src Fixed code completion for .editorconfig file May 24, 2020
syntaxes Added grammar for .editorconfig file May 22, 2020
.editorconfig feat: introduce prettier Aug 9, 2019
.eslintignore prepare for migration to vscode-test Aug 10, 2019
.eslintrc.json Introduce ESLint + @typescript-eslint Aug 9, 2019
.gitignore update project to new vscode API, yeoman generator templates Aug 10, 2019
.prettierignore update project to new vscode API, yeoman generator templates Aug 10, 2019
.travis.yml update project to new vscode API, yeoman generator templates Aug 10, 2019
.vscodeignore update project to new vscode API, yeoman generator templates Aug 10, 2019
CHANGELOG.md Fixed code completion for .editorconfig file May 24, 2020
EditorConfig_icon.png add icon Nov 12, 2015
LICENSE.md fix: run prettier on src/test files Aug 9, 2019
README.md Fix SVG badges to PNG Dec 13, 2019
ThirdPartyNotices.txt Update readme, legal, ext name Feb 5, 2016
editorconfig.language-configuration.json Added grammar for .editorconfig file May 22, 2020
package-lock.json Fixed code completion for .editorconfig file May 24, 2020
package.json Fixed code completion for .editorconfig file May 24, 2020
tsconfig.json upgrade vscode-test-utils Aug 11, 2019

README.md

EditorConfig for Visual Studio Code

GitHub Actions Gitter

This plugin attempts to override user/workspace settings with settings found in .editorconfig files. No additional or vscode-specific files are required. As with any EditorConfig plugin, if root=true is not specified, EditorConfig will continue to look for an .editorconfig file outside of the project.

This repository is specific to the EditorConfig Extension for Visual Studio Code. Internally, it uses the editorconfig npm package, which is one of a few EditorConfig cores available.

See also:

Feel free to submit any issues you may have via the issue tracker.

Installation

ext install EditorConfig

Supported Properties

  • indent_style
  • indent_size
  • tab_width
  • end_of_line (on save)
  • insert_final_newline (on save)
  • trim_trailing_whitespace (on save)

On the backlog

  • charset

How it works

This extension is activated whenever you open a new text editor, switch tabs into an existing one or focus into the editor you already have open. When activated, it uses editorconfig to resolve the configuration for that particular file and applies any relevant editor settings.

Note: some settings can only be applied on file save, as indicated above.

A new .editorconfig file can be created via the Explorer sidebar's context menu by right-clicking in the folder where you'd like it to be and selecting Generate .editorconfig.

Known Issues

You can’t perform that action at this time.