【发布时间】:2011-12-29 23:08:07
【问题描述】:
我使用Eclipse的Blackberry java插件编写代码。我的代码中有预处理器语句,方式如下
//#ifdef OS50
//run this
//#else
//run this
//#endif
每次我对这段代码执行“格式化”(CTRL+SHIFT+F)时,eclipse 都会在 '//' 和 '#' 之间添加一个空格。所以如果我格式化上面的代码,它会像这样结束
// #ifdef OS50
//run this
// #else
//run this
// #endif
然后这告诉 eclipse 我有 cmets 而不是预处理器指令。因此我无法编译。格式化时有什么办法可以避免 Eclipse 对我的代码执行此操作?
【问题讨论】:
标签: eclipse blackberry eclipse-plugin blackberry-eclipse-plugin