Is there any C++ code beautifuler plug-in for eclipse? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
开发者_开发技巧 Improve this questionI found a very tempting function in Netbeans, which is to re-factor or 'beautiful-ize' the c++ code according to some parameters, such as tab length, {'s position, etc
is there anything similar in Eclipse, which keyword should I google?
- Go to your code window
- Right click
- Select "Source" then "Format"
This should reformat your code according to the options given in the Preferences => "C/C++" => "Code Style
By using Code Formatter (Ctrl + Shift + F) you can indent the code following a predefined template. Go to Window -> Preferences -> Code Style.
CPPStyle plugin requires cpplint.py and clang-format and it simply works great. You may as well automatically format your code with google style while saving it. This can be done for all your projects at once, too.
精彩评论