MCPcopy Index your code
hub / github.com/editorconfig/editorconfig-vscode

github.com/editorconfig/editorconfig-vscode @v0.18.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.18.2 ↗ · + Follow
61 symbols 151 edges 17 files 1 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

When identifying an extension, provide the full name of the form publisher.extension. For this extension, that's editorconfig.editorconfig.

See Extension Marketplace for more information on the multiple ways of installing VSCode extensions.

Supported Properties

  • indent_style
  • indent_size
  • tab_width
  • end_of_line (on save)
  • insert_final_newline (on save)
  • trim_trailing_whitespace (on save)
  • 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

Core symbols most depended-on inside this repo

log
called by 15
src/DocumentWatcher.ts
getOptionsForFixture
called by 9
src/test/testUtils.ts
addSetting
called by 6
src/commands/generateEditorConfig.ts
resolveCoreConfig
called by 3
src/api.ts
resolveFile
called by 3
src/api.ts
wait
called by 3
src/test/testUtils.ts
hasEqualsSign
called by 2
src/EditorConfigCompletionProvider.ts
handleTextEditorChange
called by 2
src/DocumentWatcher.ts

Shape

Function 24
Method 24
Class 13

Languages

TypeScript100%

Modules by API surface

src/EditorConfigCompletionProvider.ts15 symbols
src/api.ts9 symbols
src/DocumentWatcher.ts8 symbols
src/transformations/TrimTrailingWhitespace.ts6 symbols
src/transformations/InsertFinalNewline.ts4 symbols
src/test/testUtils.ts4 symbols
src/test/suite/index.test.ts4 symbols
src/transformations/SetEndOfLine.ts3 symbols
src/commands/generateEditorConfig.ts3 symbols
src/transformations/PreSaveTransformation.ts1 symbols
src/test/untitled-suite/index.ts1 symbols
src/test/suite/index.ts1 symbols

For agents

$ claude mcp add editorconfig-vscode \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact