[英]Organize import disturbs comments
I've commented code like below : 我评论了如下代码:
/*System.out.println("Parsed in main : " + parsed);
System.out.println("Parsed sum " + (parsed.getHour() + parsed.getMinute()));
System.out.println(isSessionSelected("10:00:00 am"));*/
However, after organize import
it disturb the import and look like this : 但是,在
organize import
它会干扰导入,如下所示:
/*
* System.out.println("Parsed in main : " + parsed);
* System.out.println("Parsed sum " + (parsed.getHour() + parsed.getMinute()));
* System.out.println(isSessionSelected("10:00:00 am"));
*/
This eats my time as every time I uncomment code I have to remove extra *. 这会浪费我的时间,因为每次我取消注释代码时都必须删除多余的*。
How to not let eclipse do this? 如何不让日食做到这一点?
If you want to remove those extra *. 如果要删除那些多余的*。 in eclipse go to
在日食中去
Window->Preferences->Java->Code Style->Formatter. 窗口->首选项-> Java->代码样式->格式化程序。
Create a new profile by clicking on new button. 通过单击“新建”按钮创建一个新的配置文件。 after that a new dialog appears,
之后出现一个新对话框,
Select Comments tab uncheck Enable block comment formatting. 选择注释选项卡,取消选中启用块注释格式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.