EditorConfig Plugin for MonoDevelop and Visual Studio for Mac
This is an EditorConfig plugin for MonoDevelop and Visual Studio for Mac.
Installation
Install from the Extension Manager
- Open the Extension Manager in your IDE
- Click the gallery tab
- Search for EditorConfig
- Select the extension and click install
- Restart the IDE (this is due to a startup limitation)
Install from Source
Source builds are currently only supported using Visual Studio for Mac.
Building the Solution
- Clone the repo
- Open the solution in Visual Studio for Mac
- Project > Active Configuration > Release
- Build > Build All
You should end up with some assemblies in your bin/Release folder. We'll need to use editorconfig-monodevelop.dll in the next step.
Building the Extension File (.mpack)
- Find vstool in your Visual Studio for Mac app folder e.g. /Applications/Visual Studio.app/Contents/MacOS/
- Run vstool on editorconfig-monodevelop.dll from the previous steps e.g.
./vstool setup pack /path/to/editorconfig-monodevelop/editorconfig-monodevelop/bin/Release/net461/editorconfig-monodevelop.dll
This should have generated an .mpack file e.g. EditorConfig.Addin.EditorConfig_1.0.mpack, which you can put wherever you want.
Installing the Extension in Visual Studio for Mac
- Run Visual Studio for Mac
- Visual Studio for Mac > Extensions...
- Click Install from file...
- Navigate to your .mpack and click Open
- Click Install
- Restart the IDE (this is due to a startup limitation)
Supported Properties
This plugin supports the following EditorConfig properties:
indent_style
indent_size
tab_width
end_of_line
with option to convert on savecharset
trim_trailing_whitespace
insert_final_newline
root
(only used by EditorConfig .NET Core)
These change editor settings on file open:
indent_style
indent_size
tab_width
end_of_line
These modify files on save:
charset
trim_trailing_whitespace
insert_final_newline
end_of_line
(can enable via an option)
For reference: editorconfig/editorconfig#248 (comment)
Bugs and Feature Requests
Adding an issue in the issue tracker is probably fine for now.