A bunch of quality refactorings and code fixes that are going to improve your C# development experience in Visual Studio and remove some common pain.
See the change log for changes and road map.
Ctrl+. on a field and choose Add constructor and initialize field.
Allows you to quickly add missing braces to single statements:
It works both ways and allows you to remove braces if you prefer so.
Ctrl+. on a type declaration (either top level or nested) and choose one of proposed options.
Suggest to declare a field as readonly if it's possible:
and press TAB:
Ctrl+. on a constructor parameter and choose Add initialized field.
Ctrl+. on a field and choose Initialize field in existing constructor.
There is a standard command in Solution Explorer called 'Sync with Active Document'. People coming from ReSharper will appreciate its Shift+Alt+L equivalent.
The command is available in the code editor either from the context menu or as a shortcut.
Sometimes you copy code from another class into a new one and this quick fix allows you to update the constructor name.
Analyze if a top level namespace does not match the path of the file where it is declared or does not start with the project's default namespace.
Note that the code fix currently does not update references.
If you're a fan of Xunit data driven tests this one's going to be a little time saver for you. You can scaffold
As well as
Note that this feature works with Xunit 2.x only.
All features can be individually enabled or disabled.
Analyzes if a top level type name does not match the name of the file where it is declared and displays a warning.
It also offers to either rename the type to match the file name or rename the file to match the type name.
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.