开发者

Is there any C++ code beautifuler plug-in for eclipse? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜