Java 如何在 IntelliJ 14 中永久打开行号?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27032622/
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
How do I turn on line numbers permanently in IntelliJ 14?
提问by JBaczuk
How do I permanently turn on line numbers in IntelliJ IDEA 14? This post is outdated: how-can-i-permanently-have-line-numbers-in-intellij
如何在 IntelliJ IDEA 14 中永久打开行号?这篇文章已过时:how-can-i-permanently-have-line-numbers-in-intellij
采纳答案by JBaczuk
Permanently (Ubuntu):
永久(Ubuntu):
File > Settings > Editor > General > Appearance > Show Line Numbers
文件 > 设置 > 编辑器 > 常规 > 外观 > 显示行号
For just the current editor: View > Active Editor > Show Line Numbers
仅针对当前编辑器:查看 > 活动编辑器 > 显示行号
回答by Bohuslav Burghardt
Go to Settings/Editor/General/Appearanceand enable Show line numbersto permanently show line numbers for all editors.
转到设置/编辑器/常规/外观并启用显示行号以永久显示所有编辑器的行号。
The solution with View > Active Editor > Show Line Numbersseems to work only for the active editor (when you close the current tab or open a new file you have to enable it again).
查看 > 活动编辑器 > 显示行号的解决方案似乎只适用于活动编辑器(当您关闭当前选项卡或打开一个新文件时,您必须再次启用它)。
回答by Saneth Dharmakeerthi
Go to Preferences > Editor > Appearance, and select the Show line numberscheck box.
转到Preferences > Editor > Appearance,然后选中Show line numbers复选框。
It will turn on the line numbers permanently.
它将永久打开行号。
回答by Radu Bompa
You can do it even faster, using the Search Everywhere tool (press Shift twice): type "Show Line Numbers" (or even "line") and the top hit is the switch for permanent line numbers.
您可以使用 Search Everywhere 工具(按两次 Shift)更快地完成此操作:键入“显示行号”(或什至“行”),最上面的点击是永久行号的开关。
There are 2 switches for line numbers, one that has a On/Off switch and works globally, and one without the switch - for the current file. And one more for the Active Editor (current file).
行号有 2 个开关,一个有一个 On/Off 开关并在全局范围内工作,另一个没有开关 - 用于当前文件。还有一个用于活动编辑器(当前文件)。
回答by jalegris
In Android Studio 1.3.2 (a variety of IntelliJ Idea) you can find the "Show line numbers" checkbox under:
在 Android Studio 1.3.2(各种 IntelliJ Idea)中,您可以在下面找到“显示行号”复选框:
Android Studio > Preferences > Editor > General > Appearance
Android Studio > Preferences > Editor > General > Appearance
Or, if you type "line numbers" into the main search box you'll be presented with a switch you can set right there.
或者,如果您在主搜索框中键入“行号”,您将看到一个开关,您可以在那里进行设置。
回答by Anuj Sharma
Just right click and enable Lines in Windows. For more info check this link.
只需右键单击并启用 Windows 中的 Lines。有关更多信息,请查看此链接。