Can I customize Auto Studio Visual Studio?

I am using Visual Studio to develop a C / C ++ library. I would like to know if there is a way to configure the auto-format tool (Ctrl + K, F) so that:

  • It automatically splits rows larger than 120 columns.

  • Format the function / method parameter as follows:

    void myFunction(int parameterA, float parameterB, string paramterC) 
  • Format the brackets as follows:

     void myFunction() { // Code goes here... } 

To summarize, I want something similar to what Eclipse does with it autoformat (Ctrl + Shift + F), which can be customized by editing the XML file.

+6
c ++ visual-c ++ visual-studio
source share
2 answers

If these parameters are not good enough, you will get UniversalIndentGUI , this is an interface for a whole host of code formatting engines, you should be able to get the style you want from it

+3
source share

Tools | Options | Text editor | C ++

That's all I know, allows you to edit the way the code is formatted, and the automatic formatter uses these parameters (as much as possible).

+3
source share

All Articles