停止Eclipse从我的评论 [英] Stop Eclipse from mangling my comments
问题描述
有什么方法可以阻止eclipse来修改我的源文件中的注释吗?
我的主要问题是阻止它包装他们。我设法配置eclipse不包装任何代码,但它似乎仍然做评论。
我输入的代码如下:
public int myVariable = 100; //这个变量是一个非常有趣的变量,它有很多东西
/ p>
public int myVariable = 100; //这个变量
//是一个非常
//有趣的
//变量和
//它很多
//的东西
解决方案转到窗口菜单 - >首选项
从左边的列表中选择你感兴趣的编辑器(例如Java)
那么应该有一个称为代码样式的子部分,并在Formatter下面。
然后,您需要创建一个新的格式化程序配置文件。 (无法编辑内置配置文件)
在配置文件配置的最后一个选项卡上是注释格式的选项Is there a way to stop eclipse from mangling the comments in my source files?
My main issue is stopping it from word wrapping them. I've managed to configure eclipse to not word wrap any code but it still seems to do it to comments.
Code that I enter like this:
public int myVariable = 100; // this variable is a very interesting variable and it does lots of stuff
End up like this:
public int myVariable = 100; // this variable // is a very // interesting // variable and // it does lots // of stuff
解决方案Go to the "Window" menu -> preferences
choose the editor you're interested in from the list on the left.(e.g. Java)
then there should be a subsection called "Code Style", and under that "Formatter".Then you'll need to create a new formatter profile. (The built-in profile can't be edited) On the last tab of the profile configuration is options for comment formatting
这篇关于停止Eclipse从我的评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!