I am reading C ++ recently.CodeSome people do not look very comfortable in writing the style, so they just got a tool named sourcestyler C ++, which is quite good.
I just want to see if I haven't tried it. I don't think it's necessary. Add it when necessary.
Sourcestyler C ++ can format C and C ++Source codeTool software.
The following describes how to integrate it into source insight.
Suppose that my sourcestyler C ++ is installed under the D: sourcestyler directory. After installation, there is a window interface executable under this directory.ProgramYou can use it to format code in batches. Another one is used under the command line. We just want to integrate the code used under the command line into Si.
1. Options-> Custom commands
2. Enter in run: (the specific parameter options may vary)
D: sourcestylersourcestyler.exe -- scheme GNU -- In % f -- out % F
3. Check the following options:
Iconic window
Capture output
4. Add custom commands to the menu. You can set a shortcut key.
5. each time the current file is formatted, SI will prompt that the file is modified outside the editor; you can remove this option from the parameter settings menu (option> parameter settings> File> re-load the modified file ).
Http://blog.csdn.net/lb015331/article/details/6817599
Http://blog.csdn.net/minico/article/details/1775554