• Stars
    star
    129
  • Rank 270,561 (Top 6 %)
  • Language
    C#
  • License
    Other
  • Created over 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Visual Studio extension

EditorConfig

Build status

Download this extension from the VS Marketplace or get the CI build.


The EditorConfig Project helps developers define and maintain consistent coding styles between different editors and IDEs.

Visual Studio 2017 natively supports .editorconfig files, but it doesn't give language support for editing those files. This extension provides that

For Visual Studio version 2010 to 2015, get the EditorConfig extension instead.

See the change log for changes and road map.

Need help getting started with commands? Check out Microsoft's Reference Guide for details and examples of coding styles available

Features

Create .editorconfig Files

To make it really easy to add a .editorconfig file, you can now right-click any folder, project, solution folder and hit Add -> .editorconfig File

Classification

Syntax Highlighting

Full colorization of the full .editorconfig syntax.

Classification

C# and .NET Style Analyzers

Visual Studio 2017 lets you add C# and .NET specific rules to the .editorconfig file. In addition to enabling various rules, a severity is also added to control how Visual Studio is going to handle these rules.

C# and .NET style analyzers

Each severity is clearly marked by an icon to make it easy to identify.

Intellisense

The extension provides Intellisense for both keywords and values.

Classification

Classification

Code Snippets

Various code snippets have been added to make it easier to work with .editorconfig files.

To insert a snippet, right-click inside the editor or hit Ctrl+K,Ctrl+X.

Snippets

This will show a list of available snippets to insert.

Snippets

Validation

Error squiggles are shown for invalid values.

Classification

Properties that are being overridden by a duplicate property in the same section is easy to identify.

Validate duplicates

If a parent document contains the exact same property and value in a section with the same globbing pattern, a suggestion shows up to remove it.

Validate parent

See the complete list of error codes.

To suppress any error in the .editorconfig document, use the light bulb feature:

Suppress error

That will add a special comment at the top of the file to let the validator know what error messages to suppress.

Suppress Comment

Another way to suppress the error is by right-clicking the error in the Error List.

Suppress from Error list

Hover Tooltips

Hover the mouse over any keyword to see a full description.

Classification

Light Bulbs

Sorting properties, deleting sections, and adding missing rules is easy with the commands being shown as light bulbs in the editor margin.

Light bulbs

Code Formatting

Typing Ctrl+K,D will invoke Visual Studio's Format Document command. By default that will align all the equal (=) delimeters and add 1 space character around both equal- and colon characters. This behavior is configurable in the settings (see below).

Code formatting

Navigational Drop Downs

Dropdown menus at the top of the editor makes it easy to navigate the document.

Navigational drop downs

Inheritance Visualizer

A project can have multiple .editorconfig files and the rules in each cascades from the top-most and down. It is based on folder structure.

The inheritance visualizer is located at the bottom right corner of the editor window and makes it easy to see this relationship.

Inheritance visualizer

You can navigate to the immediate parent document by hitting F12. You can change the shortcut under Tools -> Options -> Environment -> Keyboard and find the command called EditorConfig.NavigateToParent.

Note, the inheritance visualizer is only visible when the current file isn't the root of the hierarchys or by specifying the root = true property.

Settings

Change the behavior of the editor from Tools -> Options or simply by right-clicking in the editor.

Open EditorConfig settings

Settings

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

References to available formatting/code options directly from Roslyn codebase

License

Apache 2.0

More Repositories

1

Miniblog.Core

An ASP.NET Core blogging engine
JavaScript
1,449
star
2

WebEssentials2013

Visual Studio extension
C#
949
star
3

MiniBlog

A minimal blog engine using Razor Web Pages
C#
915
star
4

BundlerMinifier

Visual Studio extension
C#
606
star
5

ShortcutExporter

Visual Studio extension
C#
481
star
6

WebCompiler

Visual Studio extension for compiling LESS and Sass files
C#
448
star
7

MarkdownEditor

A Visual Studio extension
C#
397
star
8

WebEssentials.AspNetCore.ServiceWorker

C#
336
star
9

WebEssentials2015

A Visual Studio extension for web developers
C#
302
star
10

AddAnyFile

A Visual Studio extension
C#
256
star
11

Tweakster

A Visual Studio extension
C#
239
star
12

PhotoGallery

ASP.NET Core Photo Gallery
C#
170
star
13

MarkdownEditor2022

A Visual Studio extension
C#
161
star
14

OpenCommandLine

A Visual Studio extension
C#
158
star
15

ExtensibilityTools

Tools for writing Visual Studio extensions
C#
153
star
16

JavaScriptPrettier

A Visual Studio extension
C#
151
star
17

RainbowBraces

A Visual Studio extension
C#
129
star
18

FileDiffer

A Visual Studio extension
C#
128
star
19

TrailingWhitespace

Display trailing whitespace in any VS editor
C#
118
star
20

FileNesting

Nest files in Solution Explorer
C#
117
star
21

FileIcons

A Visual Studio extension
C#
115
star
22

PrivateGalleryCreator

Create private extension galleries for Visual Studio
C#
112
star
23

WebEssentials2012

C#
96
star
24

NpmTaskRunner

Visual Studio extension
C#
87
star
25

TypeScriptDefinitionGenerator

A Visual Studio extension
C#
83
star
26

ZenCodingVS

A Visual Studio extension
C#
70
star
27

SolutionColors

A Visual Studio extension
C#
69
star
28

ExtensionPackTools

A Visual Studio extension
C#
67
star
29

MarkSite

A markdown powered CMS written in ASP.NET
C#
66
star
30

RestClientVS

C#
66
star
31

TextmateBundleInstaller

A Visual Studio extension
C#
65
star
32

ShowTheShortcut

A Visual Studio extension
C#
65
star
33

PackageInstaller

A Visual Studio extension
C#
64
star
34

CodeCleanupOnSave

C#
63
star
35

VuePack

C#
61
star
36

OpenInVsCode

A Visual Studio extension
C#
61
star
37

WebAnalyzer

A Visual Studio extension
C#
55
star
38

WebEssentials.AspNetCore.OutputCaching

C#
52
star
39

CommentRemover

A Visual Studio extension
C#
51
star
40

WebEssentials2019

C#
49
star
41

WebEssentials.AspNetCore.CdnTagHelpers

A CDN helper for ASP.NET Core
C#
47
star
42

ImageOptimizerWebJob

C#
47
star
43

DialToolsForVS

A Visual Studio extension
C#
47
star
44

ReverseProxyCDN

C#
42
star
45

CommandTaskRunner

A Visual Studio extension
C#
42
star
46

JSON-Intellisense

NPM package Intellisense in package.json
C#
40
star
47

WebPackTaskRunner

A Visual Studio extension
C#
40
star
48

VuePack2017

A Visual Studio extension
C#
38
star
49

AspNetCoreTemplatePack

C#
38
star
50

SolutionExtensions

A Visual Studio extension
C#
36
star
51

FeedCollector

A simple website for aggregating RSS/Atom feeds
C#
36
star
52

Surrounder

A Visual Studio extension
C#
34
star
53

WebAccessibilityChecker

A Visual Studio extension
C#
34
star
54

ClearComponentCache

A Visual Studio extension
C#
33
star
55

PrettyPaste

Fixes the added blank lines when copying and pasting from IE
C#
32
star
56

VsixGallery

The Open VSIX Gallery
C#
32
star
57

ImageSprites

A Visual Studio extension
C#
32
star
58

Editorsk

A Visual Studio extension
C#
30
star
59

JavaScriptSnippetPack

A Visual Studio extension
Vim Snippet
30
star
60

CloseAllTabs

A Visual Studio extension
C#
30
star
61

IgnoreFiles

A Visual Studio extension
C#
29
star
62

zencoding

Provides hybrid ZenCoding for Web Essentials
C#
29
star
63

ImagePreview

C#
28
star
64

DarkTheme2019

C#
28
star
65

KnownMonikersExplorer

A Visual Studio extension
C#
28
star
66

CommandTableInfo

A Visual Studio extension
C#
28
star
67

Madskristensen.VisualStudio.SDK

Visual Studio SDK meta packages
28
star
68

ExtensionGallery

A Visual Studio extension gallery
C#
28
star
69

Packman

A client-side package manager
C#
28
star
70

TemplateCreator

A Visual Studio extension
C#
27
star
71

BasicEssentials

26
star
72

DeveloperNews

C#
26
star
73

BrowserReloadOnSave

A Visual Studio extension
C#
26
star
74

SvgViewer

Shows the rendered image of .svg files
C#
25
star
75

StaticWebHelper

Perf optimize static websites hosted on IIS
C#
25
star
76

MIDL

A Visual Studio extension
C#
24
star
77

WorkspaceFiles

C#
24
star
78

vswebessentials.com

The official website of Web Essentials for Visual Studio
C#
23
star
79

ExtensionUpdater

Visual Studio extension for auto updating extensions
C#
23
star
80

Community.VisualStudio.Toolkit

A community toolkit for writing Visual Studio extensions
C#
23
star
81

CssTools

A Visual Studio extension
C#
22
star
82

InsertGuid

A Visual Studio extension
C#
22
star
83

ExtensionScripts

PowerShell
22
star
84

ErrorHighlighter

Visual Studio extension
C#
21
star
85

CopyNice

A Visual Studio extension
C#
21
star
86

SpaTemplatePack

A Visual Studio extension
C#
20
star
87

EditorColorPreview

C#
20
star
88

Madskristensen.VisualStudio.SDK.HelpersOLD

C#
19
star
89

VsctIntellisense

Intellisense for VSCT files
C#
19
star
90

JavaScriptRegions

A Visual Studio extension
C#
19
star
91

OptionsSample

A Visual Studio extension sample
C#
19
star
92

JsonSchemaGenerator

A Visual Studio extension
C#
18
star
93

WebEssentialsChrome

A browser extension
JavaScript
18
star
94

MiniBlogFormatter

C#
17
star
95

PkgdefLanguage

A Visual Studio extension
C#
17
star
96

TomlEditor

C#
16
star
97

HtmlSnippetPack

A Visual Studio extension
Vim Snippet
16
star
98

LessCompiler

A Visual Studio extension
C#
16
star
99

VuePack2019

C#
16
star
100

OutputWindowFilter

C#
15
star