• Stars
    star
    352
  • Rank 120,622 (Top 3 %)
  • Language
    C#
  • License
    Other
  • Created over 12 years ago
  • Updated over 2 years ago

Reviews

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

Repository Details

EditorConfig Visual Studio Addin

EditorConfig Visual Studio Plugin

Join the chat at https://gitter.im/Mpdreamz/editorconfig-visualstudio

This plugin allows you to have per project checked in Visual Studio settings using an .editorconfig settings file.

See the project web site for more information.

VS 2017

As of Visual Studio 2017 Visual Studio ships with .editorconfig support baked in!

This is in fact part of roslyn and will mean that other editors relying on roslyn (omnisharp) to do the code formatting will also benefit from this.

On top of that roslyn will introduce more editorconfig extension properties to control additional formatting options per project see e.g: dotnet/roslyn#15029

For now this baked in implementation has 2 limitations:

  • Does not work for XML files
  • Does not support insert_final_newline and trim_trailing_whitespace (note that these options are supported from Visual Studio 2017 version 15.3)

If you feel strongly there is a need for editorconfig plugin (given these limitations still exists at the time of reading) and you want to submit a PR and become a maintainer ping one of the editorconfig team members!

Resharper

The plugin and resharper tend to not play nicely, resharper will also support .editorconfig files in the near future see: https://youtrack.jetbrains.com/issue/RSRP-461746

Installing

This plugin works with Visual Studio 2012, 2013, and 2015. Again, this plugin is not needed on 2017. The easiest way to install it is through Visual Studio's built-in Extension Manager. Just search for "EditorConfig" in the Online Gallery section. Or, download a copy from the Visual Studio gallery website.

Bleeding edge Build status

Bleeding edge vsix installer is build on every commit and can be found here:

https://ci.appveyor.com/project/Mpdreamz/editorconfig-visualstudio/build/artifacts

Building

We adhere to the F5 manifesto so you should be able to clone, open in VS and build.

Building from the command line can be done calling build.cmd this will create a vsix packages under artifacts directory in the root of the checkout.

Supported properties

The plugin supports the following EditorConfig properties:

  • indent_style
  • indent_size
  • tab_width
  • end_of_line
  • insert_final_newline
  • trim_trailing_whitespace
  • root (only used by EditorConfig core)

Reporting problems

If you encounter any problems, feel free to report them at the issue tracker.

Please note that you shouldn't expect to see settings from your .editorconfig file's configuration in the text editor options dialog. Those are your global settings that we try to restore whenever we can so we do not bleed into your projects not using editorconfig.

More Repositories

1

editorconfig-vim

EditorConfig plugin for Vim
Vim Script
3,101
star
2

editorconfig

EditorConfig universal issue tracker and wiki
3,082
star
3

editorconfig-emacs

EditorConfig plugin for Emacs
Emacs Lisp
724
star
4

editorconfig-core-c

EditorConfig core library written in C (for use by plugins supporting EditorConfig parsing)
C
292
star
5

editorconfig-jetbrains

A JetBrains IDE plugin supporting the EditorConfig standard
Java
292
star
6

editorconfig-core-js

EditorConfig Core library and command line utility written in JavaScript
TypeScript
266
star
7

editorconfig.github.com

Configuration file format for defining coding styles in shared projects
HTML
265
star
8

editorconfig-notepad-plus-plus

EditorConfig plugin for Notepad++
C++
186
star
9

editorconfig-core-go

EditorConfig Core written in Go
Go
129
star
10

editorconfig-core-py

Clone of EditorConfig core written in Python
Python
90
star
11

specification

Specification of EditorConfig file format
Python
83
star
12

editorconfig-core-net

EditorConfig Core library and command line utility written in C# for .NET/Mono http://editorconfig.org
C#
70
star
13

editorconfig-core-java

Clone of EditorConfig core written in Java
Java
61
star
14

editorconfig-gedit

EditorConfig plugin for Gedit
Python
54
star
15

editorconfig-geany

EditorConfig plugin for Geany
C
45
star
16

editorconfig-qtcreator

EditorConfig Plugin for QtCreator
C++
40
star
17

editorconfig-core-ruby

Clone of EditorConfig core written in Ruby
Ruby
27
star
18

editorconfig-core-test

Testings for EditorConfig Core
CMake
25
star
19

editorconfig-defaults

24
star
20

editorconfig-jedit

EditorConfig plugin for jEdit
Java
16
star
21

editorconfig-plugin-tests

Tests for EditorConfig plugins
Python
16
star
22

editorconfig-core-lua

EditorConfig Core bindings for Lua
CMake
15
star
23

live-demo

Work in progress: EditorConfig in-browser live demo
JavaScript
13
star
24

editorconfig-textadept

EditorConfig plugin for Textadept
Lua
11
star
25

utilities

Utilities for EditorConfig development
Ruby
11
star
26

editorconfig-codeblocks

EditorConfig plugin for Code::Blocks
C++
11
star
27

editorconfig-core-qt

EditorConfig core written for Qt
C++
10
star
28

docs.editorconfig.org

EditorConfig C Core library documentation
JavaScript
10
star
29

editorconfig-core-java-binding

EditorConfig Core Java Binding
Java
8
star
30

editorconfig-vote

The issue tracker is for voting purpose only. Only @editorconfig/board-member members can comment.
4
star
31

javadocs.editorconfig.org

EditorConfig library Java API documentation
CSS
3
star