eclipse java代码显示行号
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3979809/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
eclipse java code display linenumber
提问by cometta
what plugins do i need to install on eclipse so that .java files will show line number? how about show line number on .xml/.html as well?
我需要在 Eclipse 上安装哪些插件才能让 .java 文件显示行号?如何在 .xml/.html 上显示行号?
采纳答案by Hyman
There is also a simpler way: just right click on gutter (left border of your editor window in which your code resides) and enable them.. there is a specific option there.
还有一种更简单的方法:只需右键单击装订线(代码所在的编辑器窗口的左边框)并启用它们。那里有一个特定的选项。
回答by Kaleb Brasee
Window Menu -> Preferences -> General -> Editors -> Text Editors -> check Show line numbers
窗口菜单 -> 首选项 -> 常规 -> 编辑器 -> 文本编辑器 -> 勾选显示行号
回答by galovikcode.eu
Easy click on left bar (where line numbers will show) and clikc Show line numbers.
轻松单击左侧栏(将显示行号)并单击“显示行号”。
回答by srinivas
What if line numbers are not displayed even after checking the line number option in Window->Preferences->Editors->Show Line Numbers checkbox. I am facing this issue.
如果在 Window->Preferences->Editors->Show Line Numbers 复选框中选中行号选项后仍不显示行号怎么办。我正面临这个问题。