开发者

How to clean up combined vars declarations in Eclipse?

开发者 https://www.devze.com 2023-01-09 08:32 出处:网络
could anyone advice an option in Eclipse IDE for cleaning up combined vars declarations. I was unable to find one in \"Clean up\" settings for Eclipse.

could anyone advice an option in Eclipse IDE for cleaning up combined vars declarations. I was unable to find one in "Clean up" settings for Eclipse.

To turn this:

int a=0, b, c;

into this:

int a=0;
int b;
int c;

Thanks f开发者_如何学Pythonor answers.


I don't know of a setting or a plugin which would do precisely that kind of refactoring.

That would then be a good candidate for an AST (Abstract Syntax tree) plugin, like you can find in this JDT - AST Tutorial.

0

精彩评论

暂无评论...
验证码 换一张
取 消