【发布时间】:2015-09-01 18:55:47
【问题描述】:
我已将我的 eclipse 格式化程序更改为使用 Spaces Only 进行缩进,并且“缩进大小”(和“制表符大小”)为 2。
进行这些更改后,内置格式化程序没有其他更改,我现在在粘贴 cmets 时遇到问题。
而不是正确缩进,例如:
private String str1;
// Correctly indented comment
private String str2;
现在我的 cmets 被粘贴,没有标题空间,反斜杠和评论文本之间的空间被删除,如下所示:
private String str1;
//Incorrectly indented comment
private String str2;
有没有办法解决这个问题?
我在Java -> Editor -> Typing -> When pasting 下打开了Adjust Indentation 属性。
安装细节(来自 About):
Eclipse SDK
版本:4.2.2
版本号:M20130204-1200
【问题讨论】:
标签: java eclipse comments indentation copy-paste