GithubHelp home page GithubHelp logo

isabella232 / editorconfig-visualstudio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from editorconfig/editorconfig-visualstudio

0.0 0.0 0.0 3.83 MB

EditorConfig Visual Studio Addin

Home Page: http://editorconfig.org

License: Other

C# 92.81% Batchfile 0.17% F# 7.02%

editorconfig-visualstudio's Introduction

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.

editorconfig-visualstudio's People

Contributors

allen-zeng avatar bbenoist avatar breyed avatar coliff avatar hmemcpy avatar iristyle avatar jaredpar avatar jednano avatar karaken12 avatar kinddragon avatar marcusrbrown avatar mikkelbu avatar mpdreamz avatar nulltoken avatar robertcoltheart avatar samsalisbury avatar shanselman avatar slaks avatar swansontec avatar takeshik avatar treyhunner avatar xuhdev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.