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
Solved! Go to Solution.
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.
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.