Source code alignment for CodeWarrior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Source code alignment for CodeWarrior

Jump to solution
1,526 Views
rabbit
Contributor III

I do copy and paste during coding, but the source code likes very mess. I use IAR,  "Cltr + T" will make all the souce code alignment nicely.

But I can't find how to do alignment for a block of source code in CodeWarrior, does anyone know how to do it?

 

Regards

Labels (1)
0 Kudos
1 Solution
808 Views
matthewkendall
Contributor V

Ctrl+Shift+F invokes the auto-formatter. It applies the rules that you have selected under Window | Preferences | C/C++ | Code Style (for C files, other rules would apply for other types of file). If you have some code selected when you type the shortcut it will format just the selection. If nothing is selected it will format the whole file.

View solution in original post

0 Kudos
1 Reply
809 Views
matthewkendall
Contributor V

Ctrl+Shift+F invokes the auto-formatter. It applies the rules that you have selected under Window | Preferences | C/C++ | Code Style (for C files, other rules would apply for other types of file). If you have some code selected when you type the shortcut it will format just the selection. If nothing is selected it will format the whole file.

0 Kudos