如何在Eclipse中默认显示行号?


当前回答

就这么简单。 按Ctrl+F10,然后N,显示或隐藏行号。

参考资料:http://www.shortcutworld.com/en/win/Eclipse.html

其他回答

打开Eclipse

goto -> Windows ->首选项->编辑器->文本编辑器->显示行号

选中“显示行否”复选框

Mac OSX的轻微变化: Eclipse→首选项→常规→编辑器→文本编辑器→显示行号

在这个文件中

(工作区).metadata.plugins \ org.eclipse.core.runtime.settings \ org.eclipse.ui.editors.prefs

确定参数

lineNumberColor = 0,0,0

不是255,255,255,哪个是白色的

这将是对所问问题的适当解决方案:

字符串lineNumbers = AbstractDecoratedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER; EditorsUI.getPreferenceStore()。setValue (lineNumbers,真实);

日食改变了偏好的位置

eclipse ->首选项