首页 文章

如何在IntelliJ中永久启用行号?

提问于
浏览
1298

如何在IntelliJ IDEA中永久启用行号?

19 回答

  • 30

    For InteliJ IDEA 11.0 and above
    在设置窗口中转到 File - > Settings Editor - > Appearance
    并勾选显示行号复选框 .

    enter image description here

  • 103

    问题显然已经得到了很好的回答,但是从IJ 13开始,您可以在2秒内启用行号:

    • 按两次换班

    • 类型"line number"

    • 该选项显示在菜单中,然后按enter键启用/禁用 .

    enter image description here

    瞧瞧;)

  • 346

    Android Studio

    转到 Android Studio => Preferences => Editor => General => Appearance =>设置已选中“ Show line numbers

    enter image description here

  • 10

    你好,这是来自未来的蒂姆! 2011 ...对于9.0.4

    文件>设置

    在树视图组中

    ------------ IDE设置---------

    点击编辑器[]

    选择外观...它在那里 .

  • 90

    在IntelliJ 14中,它再次向下移动了菜单 .

    现在我们有了它 Editor -> General -> Appearance

    enter image description here

  • 11

    在MAC OSX上的IntelliJ 12上,我很难找到它 . 搜索不会出于某种原因告诉我 . 转到“首选项”,然后在“IDE设置”,“编辑器”,“外观”下选择“显示行号”

    enter image description here

  • 21

    1st way: 转到View => Active Editor =>显示行号

    enter image description here

    2nd way 转到Android Studio => Preferences => Editor => Appearance => set Checked "Show Line Numbers"

    enter image description here

    enter image description here

  • 13

    在Mac Intellij 12.1.2上没有文件设置:

    “文件”左侧有一个应用程序名称菜单项,带有“首选项”菜单项:

    Choosing "Preferences" on the Mac.

    在其中是Windows Intellij显示的“设置”对话框 .

  • 71

    IntelliJ 14.X起飞

    从版本14.0开始,设置对话框的路径略有不同,在 EditorAppearance 之间添加了 General 子菜单,如下所示

    enter image description here

    IntelliJ 8.1.2 - 13.X

    从IntelliJ 8.1.2开始,此选项位于 File | Settings 中1.在该对话框的 IDE Settings 部分中,您将在 Editor | Appearance. 下找到它

    • 在Mac上,这些名称为 IntelliJ IDEA | Preferences...

    enter image description here

  • 1369

    在使用Mac版本的intelliJ 14 Ultimate中,这就是它 .

    IntelliJ Idea>首选项>编辑器>常规>外观>显示行号

  • 8

    在Intellij 13中,布局已更改,“设置”按钮只能在“文件” - >“设置”中找到,而不能在工具栏中找到,并从那里按照相同的步骤操作:编辑器 - >外观 - >显示行号,或搜索行号在“设置”搜索输入中 .
    Intellij Settings search for line numbers

  • 29

    我为 IntelliJ IDEA 2018.2 - Ultimate 添加了此响应 .

    Using menu

    IntelliJ Idea>首选项>编辑器>常规>外观>显示行号

    Using Shortcuts - First way

    对于Windows:Ctrl Shift a
    对于Mac:Cmd shift a

    Using Shortcuts - Seconde way

    触摸Shift两次

    自Intellij的最后4个版本以来存在这三种方法,我认为它们长期保持有效 .

  • 10

    Android Studio 1.3.2及更高版本,IntelliJ 15及以上版本

    Global configuration

    文件 - >设置 - >编辑器 - >常规 - >外观 - >显示行号


    Current editor configuration

    第一种方式:查看 - >活动编辑器 - >显示行号(此选项仅在您之前已单击活动编辑器的文件时可用)

    第二种方法:右键单击项目结构和活动编辑器之间的小区域(即可以设置断点的那个) - >显示行号 .

  • 7

    只是Windows上 Android Studio 1.5.1 的更新:

    转到 File - > Settings - >关注图片

  • 11

    还有另一种方式,甚至更快(在10.5版本中适用于我)

    只需 right click 在行号应该在的地方,你会看到一个小菜单 .

    然后,标记“显示行号”选项 .

    enter image description here

    请注意,这仅适用于每个文件 . 请享用 .

  • 12

    IntelliJ IDEA 2016.1.2

    转到 Settings > Editor > General > Appearance ,然后选中显示行号选项

  • 18

    我刚刚安装了IdeaVim插件,即使我设置了 Show Line Numbers ,它也会继续恢复隐藏它们 .

    (前额拍打 Value )解决方案是:

    :set nu
    
  • 51

    IntelliJ 14(Ubuntu):

    见:how-do-i-turn-on-line-numbers-permanently-in-intellij-14

    永久性:

    文件>设置>编辑器>常规>外观>显示行号

    Editor

    对于当前的编辑:

    查看>活动编辑器>显示行号

    Menu

  • 6

    IntelliJ IDEA 15

    5接近


    全球变化

    • 文件>设置...>编辑器>常规>外观>显示行号

    • 命中移位 twice >写入"line numbers">显示行号(具有切换的那个)>将切换更改为ON


    更改活动编辑器

    • 右键单击左侧栏>显示行号

    • 命中移位 twice >写入"line">显示行号(该行没有切换)

    • Ctrl Shift A> write "Show line"> Active Editor:显示行号>将切换更改为ON

相关问题