Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Eclipse格式化程序:如何在代码和行注释之间添加空格_Eclipse_Coding Style_Comments_Whitespace_Formatter - Fatal编程技术网

Eclipse格式化程序:如何在代码和行注释之间添加空格

Eclipse格式化程序:如何在代码和行注释之间添加空格,eclipse,coding-style,comments,whitespace,formatter,Eclipse,Coding Style,Comments,Whitespace,Formatter,在Eclipse上(我使用开普勒SR-2版本),我在代码样式/格式化程序选项中找不到如何在代码和行注释之间自动添加空白字符。以下是一个例子: 在格式化之前: class MyClass {// This my class ... } class MyClass { // This my class (a whitespace caracter should be added after the {) ... } 格式化后: class MyClass {// This my class ..

在Eclipse上(我使用开普勒SR-2版本),我在代码样式/格式化程序选项中找不到如何在代码和行注释之间自动添加空白字符。以下是一个例子:

在格式化之前:

class MyClass {// This my class
...
}
class MyClass { // This my class (a whitespace caracter should be added after the {)
...
}
格式化后:

class MyClass {// This my class
...
}
class MyClass { // This my class (a whitespace caracter should be added after the {)
...
}
有线索吗

问候