Source code alignment for CodeWarrior

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Source code alignment for CodeWarrior

跳至解决方案
2,253 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,535 次查看
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 项奖励
回复
1 回复
1,536 次查看
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 项奖励
回复