{"id":3251,"date":"2017-03-31T12:17:18","date_gmt":"2017-03-31T06:47:18","guid":{"rendered":"https:\/\/www.wikitechy.com\/technology\/?p=3251"},"modified":"2017-03-31T12:17:18","modified_gmt":"2017-03-31T06:47:18","slug":"can-permanently-line-numbers-intellij","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/technology\/can-permanently-line-numbers-intellij\/","title":{"rendered":"How can I permanently have line numbers in IntelliJ"},"content":{"rendered":"<p>To permanently turn on line numbers in IntelliJ IDEA (and other JetBrains IDEs):<\/p>\n<ol>\n<li>Go to\u00a0<b>File<\/b>\u00a0&gt;\u00a0<b>Settings&#8230;<\/b><\/li>\n<li>Then go to\u00a0<b>Editor<\/b>\u00a0&gt;\u00a0<b>General<\/b>\u00a0&gt;\u00a0<b>Appearance<\/b>.<\/li>\n<li>Check the\u00a0<b>Show line numbers<\/b>\u00a0box.<\/li>\n<li>Click\u00a0<b>Apply<\/b>\u00a0and\u00a0<b>OK<\/b>.<\/li>\n<li>Line numbers are now permanently turned on.<\/li>\n<\/ol>\n<h4 id=\"intellij-14-x-onwards\"><span style=\"color: #ff6600;\"><b>IntelliJ 14.X Onwards<\/b><\/span><\/h4>\n<p>From version 14.0 onwards, the path to the setting dialog is slightly different, a\u00a0<b>General<\/b>\u00a0submenu has been added between\u00a0<b>Editor<\/b>\u00a0and\u00a0<b>Appearance<\/b>\u00a0as shown below<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-3252 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we.png\" alt=\"\" width=\"705\" height=\"529\" \/><\/p>\n<h4 id=\"intellij-8-1-2-13-x\"><span style=\"color: #808000;\"><b>IntelliJ 8.1.2 &#8211; 13.X<\/b><\/span><\/h4>\n<p>From IntelliJ 8.1.2 onwards, this option is in\u00a0<b>File | Settings<\/b>1. Within the\u00a0<b>IDE Settings<\/b>\u00a0section of that dialog<\/p>\n<ul>\n<li>On a Mac, these are named\u00a0<b>IntelliJ IDEA | Preferences<\/b><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3254 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we1.png\" alt=\"\" width=\"728\" height=\"560\" \/><\/p>\n[ad type=&#8221;banner&#8221;]\n<p>In \u00a0IJ 13<\/p>\n<ol>\n<li>Press shift+shift<\/li>\n<li>Type &#8220;line number&#8221;<\/li>\n<li>The option shows in the menu and press enter to enable\/disable.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"aligncenter wp-image-3255 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we2.png\" alt=\"\" width=\"846\" height=\"276\" \/><\/p>\n<p>There&#8217;s another way,<\/p>\n<ul>\n<li>Simply\u00a0<b>right click<\/b>\u00a0on the place where the line-numbers should be, and there you&#8217;ll see a small menu.<\/li>\n<li>then, mark the &#8220;Show Line Numbers&#8221; option.<\/li>\n<li>Note that this only works on a per-file basis<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3256 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we3.png\" alt=\"\" width=\"208\" height=\"105\" \/><\/p>\n<p>In Intellij 13 the layout has changed, the Settings button can only be found in File -&gt; Settings and not in the toolbars, and from there you follow the same steps<b>: Editor -&gt; Appearance -&gt; Show line numbers, or search for Line numbers in the Settings search input.<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3257 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we4.png\" alt=\"\" width=\"806\" height=\"612\" \/><\/p>\n<h4 id=\"for-intelij-idea-11-0-and-above\"><span style=\"color: #800080;\"><b>For <\/b><b>InteliJ<\/b><b> IDEA 11.0 and above<\/b><\/span><\/h4>\n<p>Goto\u00a0<b>File<\/b>\u00a0&#8211;&gt;\u00a0<b>Settings<\/b>\u00a0in the Settings window\u00a0<b>Editor<\/b>\u00a0&#8211;&gt;\u00a0<b>Appearance<\/b><br \/>\nand tick Show line numbers check box.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3262 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we5.png\" alt=\"\" width=\"1262\" height=\"579\" \/><\/p>\n<h4 id=\"intellij-14-ubuntu\"><strong><span style=\"color: #808000;\">IntelliJ 14 (Ubuntu):<\/span><\/strong><\/h4>\n<p>File &gt; Settings &gt; Editor &gt; General &gt; Appearance &gt; show line numbers<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3265 size-full\" src=\"https:\/\/www.wikitechy.com\/technology\/wp-content\/uploads\/2017\/03\/we6-1.png\" alt=\"\" width=\"654\" height=\"568\" \/><\/p>\n<h4 id=\"for-current-editor\"><strong><span style=\"color: #ff6600;\">For current Editor:<\/span><\/strong><\/h4>\n<p>View &gt; Active Editor &gt; Show Line Numbers<\/p>\n<p>In intelliJ 14 Ultimate using the Mac version this is it.<\/p>\n<p>IntelliJ Idea &gt; Preferences &gt; Editor &gt; General &gt; Appearance &gt; Show Line Numbers<\/p>\n[ad type=&#8221;banner&#8221;]\n","protected":false},"excerpt":{"rendered":"<p>To permanently turn on line numbers in IntelliJ IDEA (and other JetBrains IDEs): Go to\u00a0File\u00a0&gt;\u00a0Settings&#8230; Then go to\u00a0Editor\u00a0&gt;\u00a0General\u00a0&gt;\u00a0Appearance. Check the\u00a0Show line numbers\u00a0box. Click\u00a0Apply\u00a0and\u00a0OK. Line numbers are now permanently turned on. IntelliJ 14.X Onwards From version 14.0 onwards, the path to the setting dialog is slightly different, a\u00a0General\u00a0submenu has been added between\u00a0Editor\u00a0and\u00a0Appearance\u00a0as shown below IntelliJ 8.1.2 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2139],"tags":[6100,6091,6093,6094,6099,6096,6097,6098,6101,6088,6089,6095,6092,6087,6090],"class_list":["post-3251","post","type-post","status-publish","format-standard","hentry","category-java","tag-always-show-line-numbers-intellij","tag-android-studio-2-2-show-line-numbers","tag-android-studio-go-to-line","tag-android-studio-increase-font-size","tag-how-can-i-permanently-have-line-numbers-in-android-studio-intellij","tag-how-can-i-permanently-have-line-numbers-in-intellij","tag-how-to-enable-line-numbers-in-intellij-android-studio-for-all-files","tag-ide-how-can-i-permanently-have-line-numbers-in-intellij","tag-intellij-displaying-line-numbers","tag-intellij-15-show-line-numbers","tag-intellij-goto-line-number-shortcut","tag-intellij-idea-how-to-permanently-turn-on-line-numbers","tag-intellij-relative-line-numbers","tag-intellij-show-line-numbers-mac","tag-show-line-numbers-in-intellij-16"],"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/comments?post=3251"}],"version-history":[{"count":0,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/posts\/3251\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/media?parent=3251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/categories?post=3251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/technology\/wp-json\/wp\/v2\/tags?post=3251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}