Visual Studio auto-formatting extension #13
Description
In it's current form the formatter operates as an extra step in the development process:
- Write the code for my feature.
- Run the formatter tool.
- Send PR.
I would really like to remove item 2 as much as possible. It's an extra step from what developers are doing today and I can very easily see it being labeled as a "style tax".
This tool shows coding guideline enforcement can be cheaply and reliably automated. Let's take this tool to the next level so that developers rarely, if every, need to go to the command line formatter for their daily development activities.
I think a Visual Studio plugin that leverages the underlying library is a great way to integrate the formatting into the existing developer routines. Many of the formatting operations are cheap enough that they could be done as a part of existing formatting hooks in Visual Studio:
- When saving a file.
- When typing a formatting character like }.
Items like underscores in field names are expensive enough that it would probably need to be done as an explicit user action. Adding a menu item for that is very cheap.