1
我刚刚刚刚安装了带有Java EE选项的Eclipse。现在,当我有一个小写字母“'后跟着一个斜线,例如“/ s”,Eclipse自动将其更改为大写W,显示“/ W”。但是,Eclipse会将其编译为小写字母's',并且当将代码粘贴到记事本中时,它将变回's'。Eclipse将“/ s”显示为“/ W”而不包含引号
按下空格,制表符,转义是徒劳的。即使我在'/'之后复制并粘贴小写'',它仍然会显示“/ W”。 Eclipse无法在任何地方连续显示字符“/”和“s”,即使在块注或行内注释中也是如此。请!任何帮助表示赞赏!谢谢。在我的Eclipse编辑器中显示
示例代码:
/*
* This code is used to demonstrate the problem my Eclipse has, which
* is that "/ s" (without space) is always turned into "/W", even in
* comments.
* The code compiles correctly in my Eclipse, showing 0.5 as output in
* the console.
*/
public class Test {
public static void main(String args[]){
double s = 2.0;
double l = 1.0;
// Calculate the value of l/W
System.out.println(l/W);
}
}
多么奇怪http://s16.postimg.org/9mfa87p6d/Screenshot_38.png – Leo
我从来没有见过这个,我知道前锋'/'不是逃避角色的一部分。它如何切换到你还没有定义的变量。 – logger
+ user3659052我知道对不对? –