views:

114

answers:

2

hi, 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?

+1  A: 

By using Code Formatter (Ctrl + Shift + F) you can indent the code following a predefined template. Go to Window -> Preferences -> Code Style.

Bobby
+3  A: 
  • 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

rstevens