<p>How can I permanently enable line numbers in IntelliJ IDEA?</p>

[{'answer_id': 912112, 'author': 'Dónal', 'author_id': 2648, 'author_profile': 'https://Stackoverflow.com/users/2648', 'pm_score': 10, 'selected': False, 'text': '<h2>IntelliJ 14.X Onwards</h2>\n\n<p>From version 14.0 onwards, the path to the setting dialog is slightly different, a <strong>General</strong> submenu has been added between <strong>Editor</strong> and <strong>Appearance</strong> as shown below</p>\n\n<p><img src="https://i.stack.imgur.com/9DL9q.png" alt="enter image description here"></p>\n\n<h2>IntelliJ 8.1.2 - 13.X</h2>\n\n<p>From IntelliJ 8.1.2 onwards, this option is in <strong>File | Settings</strong><sup>1</sup>. Within the <strong>IDE Settings</strong> section of that dialog, you\'ll find it under <strong>Editor | Appearance.</strong></p>\n\n<ol>\n<li>On a Mac, these are named <strong>IntelliJ IDEA | Preferences...</strong></li>\n</ol>\n\n<p><img src="https://i.stack.imgur.com/JVZlJ.jpg" alt="enter image description here"></p>\n'}, {'answer_id': 7270304, 'author': 'Itumac', 'author_id': 751271, 'author_profile': 'https://Stackoverflow.com/users/751271', 'pm_score': 4, 'selected': False, 'text': '<p>For 9.0.4 </p>\n\n<p>File > Settings</p>\n\n<p>In the tree view group</p>\n\n<p>------------IDE Settings ---------</p>\n\n<p>Click the Editor [+]</p>\n\n<p>Select Appearance... Its there.</p>\n'}, {'answer_id': 8266632, 'author': 'itsho', 'author_id': 426315, 'author_profile': 'https://Stackoverflow.com/users/426315', 'pm_score': 7, 'selected': False, 'text': '<p>NOT a solution, rather a <strong>TEMPORARY</strong> solution which only works only for the current editor and current session:</p>\n\n<p>Simply <strong>right click</strong> on the place where the line-numbers should be, and there you\'ll see a small menu.</p>\n\n<p>then, mark the "Show Line Numbers" option.</p>\n\n<p><img src="https://i.stack.imgur.com/tqMgd.png" alt="enter image description here"></p>\n\n<p>Please note that this only works on a per-file basis, however.  Enjoy.</p>\n'}, {'answer_id': 8654454, 'author': 'Shiham', 'author_id': 924612, 'author_profile': 'https://Stackoverflow.com/users/924612', 'pm_score': 6, 'selected': False, 'text': '<p><strong>For InteliJ IDEA 11.0 and above</strong><br>\nGoto <strong>File</strong> --> <strong>Settings</strong> in the Settings window <strong>Editor</strong> --> <strong>Appearance</strong><br>\nand tick Show line numbers check box.</p>\n\n<p><img src="https://i.stack.imgur.com/07g1k.jpg" alt="enter image description here"></p>\n'}, {'answer_id': 16366066, 'author': 'Owen', 'author_id': 441779, 'author_profile': 'https://Stackoverflow.com/users/441779', 'pm_score': 3, 'selected': False, 'text': '<p>On Mac Intellij 12.1.2 there is no File-Settings:</p>\n\n<p>There is an application-name menu item to the left of "File" with a "preferences" menu item:</p>\n\n<p><img src="https://i.stack.imgur.com/veG7t.png" alt="Choosing &quot;Preferences&quot; on the Mac."></p>\n\n<p>and within that is the "Settings" dialog shown by the Windows Intellij.</p>\n'}, {'answer_id': 18110549, 'author': 'Siddhartha', 'author_id': 792238, 'author_profile': 'https://Stackoverflow.com/users/792238', 'pm_score': 4, 'selected': False, 'text': '<p>On IntelliJ 12 on MAC OSX, I had a hard time finding it. The search wouldn\'t show me the way for some reason. Go to Preferences and under IDE Settings, Editor, Appearance and select \'Show line numbers\'</p>\n\n<p><img src="https://i.stack.imgur.com/Hpc01.png" alt="enter image description here"></p>\n'}, {'answer_id': 19304456, 'author': 'Radu Bompa', 'author_id': 1714406, 'author_profile': 'https://Stackoverflow.com/users/1714406', 'pm_score': 7, 'selected': False, 'text': '<p>In Intellij 13 the layout has changed, the Settings button can only be found in File -> Settings and not in the toolbars, and from there you follow the same steps: Editor -> Appearance -> Show line numbers, or search for Line numbers in the Settings search input.<img src="https://i.stack.imgur.com/sfNsG.png" alt="Intellij Settings search for line numbers"></p>\n'}, {'answer_id': 27032572, 'author': 'JBaczuk', 'author_id': 3499115, 'author_profile': 'https://Stackoverflow.com/users/3499115', 'pm_score': 5, 'selected': False, 'text': '<p>IntelliJ 14 (Ubuntu): </p>\n\n<p>See: <a href="https://stackoverflow.com/questions/27032622/how-do-i-turn-on-line-numbers-permanently-in-intellij-14">how-do-i-turn-on-line-numbers-permanently-in-intellij-14</a></p>\n\n<p>Permanently:</p>\n\n<p>File > Settings > Editor > General > Appearance > show line numbers</p>\n\n<p><img src="https://i.stack.imgur.com/ArGQ9.png" alt="Editor"></p>\n\n<p>For current Editor:</p>\n\n<p>View > Active Editor > Show Line Numbers</p>\n\n<p><img src="https://i.stack.imgur.com/wK2Af.png" alt="Menu"></p>\n'}, {'answer_id': 27353549, 'author': 'MaxM', 'author_id': 1518458, 'author_profile': 'https://Stackoverflow.com/users/1518458', 'pm_score': 3, 'selected': False, 'text': '<p>In IntelliJ 14 it has moved again somewhat down the menu. </p>\n\n<p>Now we have it unter <code>Editor -&gt; General -&gt; Appearance</code></p>\n\n<p><img src="https://i.stack.imgur.com/1qjBW.png" alt="enter image description here"></p>\n'}, {'answer_id': 27502240, 'author': 'Shawn Vader', 'author_id': 21063, 'author_profile': 'https://Stackoverflow.com/users/21063', 'pm_score': 5, 'selected': False, 'text': '<p>Ok in intelliJ 14 Ultimate using the Mac version this is it.</p>\n\n<blockquote>\n  <p>IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers</p>\n</blockquote>\n'}, {'answer_id': 28667333, 'author': 'Rohit', 'author_id': 1805857, 'author_profile': 'https://Stackoverflow.com/users/1805857', 'pm_score': 4, 'selected': False, 'text': '<p><strong>1st way:</strong> Go to View => Active Editor => show line numbers</p>\n\n<p><img src="https://i.stack.imgur.com/SP6TG.png" alt="enter image description here"></p>\n\n<p><strong>2nd way</strong> Go to Android Studio => Preferences => Editor=> Appearance => set Checked "Show Line Numbers"</p>\n\n<p><img src="https://i.stack.imgur.com/3WCdD.png" alt="enter image description here"></p>\n\n<p><img src="https://i.stack.imgur.com/i9T1u.png" alt="enter image description here"></p>\n'}, {'answer_id': 29621176, 'author': 'Samuel Kerrien', 'author_id': 1236461, 'author_profile': 'https://Stackoverflow.com/users/1236461', 'pm_score': 9, 'selected': False, 'text': '<p>The question is obviously well answered already, but since IJ 13 you can enable line numbers in 2 seconds flat: </p>\n\n<ol>\n<li>Press <kbd>shift</kbd> twice</li>\n<li>Type "line number"</li>\n<li>The option shows in the menu and press <kbd>enter</kbd> to enable/disable. </li>\n</ol>\n\n<p><img src="https://i.stack.imgur.com/E38WH.png" alt="enter image description here"></p>\n\n<p>Et voila ;)</p>\n'}, {'answer_id': 31368252, 'author': 'Guy West', 'author_id': 2447726, 'author_profile': 'https://Stackoverflow.com/users/2447726', 'pm_score': 4, 'selected': False, 'text': '<p>Android Studio</p>\n\n<p>Go to <strong>Android Studio</strong> => <strong>Preferences</strong> => <strong>Editor</strong> => <strong>General</strong> => <strong>Appearance</strong> => set Checked "<strong>Show line numbers</strong>"</p>\n\n<p><img src="https://i.stack.imgur.com/MiEaP.png" alt="enter image description here"></p>\n'}, {'answer_id': 32667309, 'author': 'teobais', 'author_id': 2486904, 'author_profile': 'https://Stackoverflow.com/users/2486904', 'pm_score': 6, 'selected': False, 'text': '<h1><strong>Android Studio 1.3.2 and on, IntelliJ 15 and on</strong></h1>\n\n<p><strong>Global configuration</strong></p>\n\n<p>File -> Settings -> Editor -> General -> Appearance -> Show line numbers</p>\n\n<p><a href="https://i.stack.imgur.com/VeB78.png"><img src="https://i.stack.imgur.com/VeB78.png" alt="enter image description here"></a>\n<hr/>\n<strong>Current editor configuration</strong></p>\n\n<p><em>First way:</em> View -> Active Editor -> Show Line Numbers (this option will only be available if you previously have clicked into a file of the active editor)</p>\n\n<p><em>Second way:</em> Right click on the small area between the project\'s structure and the active editor (that is, the one that you can set breakpoints) -> Show Line Numbers.\n<a href="https://i.stack.imgur.com/YGkgw.gif"><img src="https://i.stack.imgur.com/YGkgw.gif" alt="enter image description here"></a></p>\n'}, {'answer_id': 34649002, 'author': 'mpontillo', 'author_id': 77939, 'author_profile': 'https://Stackoverflow.com/users/77939', 'pm_score': 4, 'selected': False, 'text': '<p>I just hit this with IdeaVim plugin installed, where even if I set <code>Show Line Numbers</code>, it continued to revert to hiding them.</p>\n\n<p>The (forehead-slapping-worthy) solution was:</p>\n\n<pre><code>:set nu\n</code></pre>\n'}, {'answer_id': 34712075, 'author': 'ROMANIA_engineer', 'author_id': 3885376, 'author_profile': 'https://Stackoverflow.com/users/3885376', 'pm_score': 5, 'selected': False, 'text': '<h2>IntelliJ IDEA 15</h2>\n\n<h3>5 approaches</h3>\n\n<hr>\n\n<h3>Global change</h3>\n\n<ol>\n<li><p>File > Settings... > Editor > General > Appearance > Show line numbers</p>\n\n<p><a href="https://i.stack.imgur.com/NvEi2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NvEi2.png" alt="show line numbers"></a></p></li>\n<li><p>Hit <kbd>Shift</kbd> <strong>twice</strong> > write "line numbers" > Show Line Numbers (that one that has the toggle) > change the toggle to ON</p>\n\n<p><a href="https://i.stack.imgur.com/T7U2L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T7U2L.png" alt="shift shift"></a></p></li>\n</ol>\n\n<hr>\n\n<h3>Change for the Active Editor</h3>\n\n<ol>\n<li><p>Right click on the left side bar > Show Line Numbers</p>\n\n<p><a href="https://i.stack.imgur.com/3wTbv.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3wTbv.png" alt="right click"></a></p></li>\n<li><p>Hit <kbd>Shift</kbd> <strong>twice</strong> > write "line" > Show Line Numbers (the line doesn\'t have the toggle)</p>\n\n<p><a href="https://i.stack.imgur.com/Kiyb7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Kiyb7.png" alt="shift shift line"></a></p></li>\n<li><p><kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>A</kbd> > write "Show line" > Active Editor: Show Line Numbers > change the toggle to ON</p>\n\n<p><a href="https://i.stack.imgur.com/q1WeF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/q1WeF.png" alt="Ctrl Shift A"></a></p></li>\n</ol>\n'}, {'answer_id': 35310569, 'author': 'Choletski', 'author_id': 3595288, 'author_profile': 'https://Stackoverflow.com/users/3595288', 'pm_score': 3, 'selected': False, 'text': '<p>Just an update for <strong><em>Android Studio 1.5.1</em></strong> on Windows:</p>\n\n<p>Go to <strong>File</strong> -> <strong>Settings</strong> -> follow picture\n<a href="https://i.stack.imgur.com/mXdJ7.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/mXdJ7.jpg" alt="enter image description here"></a></p>\n'}, {'answer_id': 37281299, 'author': 'A0__oN', 'author_id': 5065092, 'author_profile': 'https://Stackoverflow.com/users/5065092', 'pm_score': 3, 'selected': False, 'text': '<p>On <strong><code>IntelliJ IDEA 2016.1.2</code></strong></p>\n\n<p>Go to <strong>Settings > Editor > General > Appearance</strong> \nthen check the Show Line number option</p>\n\n<p><a href="https://i.stack.imgur.com/gjMvm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/gjMvm.png" alt="enter image description here"></a></p>\n'}, {'answer_id': 50114154, 'author': 'L Y E S  -  C H I O U K H', 'author_id': 9317830, 'author_profile': 'https://Stackoverflow.com/users/9317830', 'pm_score': 4, 'selected': False, 'text': '<p>I add this response for <strong>IntelliJ IDEA 2018.2 - Ultimate</strong>.</p>\n\n<p><strong>Using menu</strong></p>\n\n<p><em>IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers</em></p>\n\n<p><a href="https://i.stack.imgur.com/hrzEN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hrzEN.png" alt="enter image description here"></a></p>\n\n<p><strong>Using Shortcuts - First way</strong></p>\n\n<p>For Windows : <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>a</kbd><br>\nFor Mac : <kbd>Cmd</kbd>+<kbd>shift</kbd>+<kbd>a</kbd></p>\n\n<p><a href="https://i.stack.imgur.com/yExMF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yExMF.png" alt="enter image description here"></a></p>\n\n<p><strong>Using Shortcuts - Seconde way</strong></p>\n\n<p>Touch <kbd>Shift</kbd> twice</p>\n\n<p><a href="https://i.stack.imgur.com/lJpH2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/lJpH2.png" alt="enter image description here"></a></p>\n\n<p>These three methods exist since the last 4 versions of Intellij and I think they remain valid for a long time.</p>\n'}, {'answer_id': 58084882, 'author': 'Md. Jamal Uddin', 'author_id': 6542943, 'author_profile': 'https://Stackoverflow.com/users/6542943', 'pm_score': 3, 'selected': False, 'text': '<p>IntelliJ 2019 community edition has line number by default.  If you want to show or hide line numbers, go to the following settings to change the appearance.</p>\n\n<p>go to → File → Setting → Editor → General → Appearance → [Check] Show line numbers</p>\n\n<p><a href="https://i.stack.imgur.com/1iZww.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1iZww.png" alt="show_line_numbers"></a></p>\n'}, {'answer_id': 61404545, 'author': 'bhordupur', 'author_id': 5174618, 'author_profile': 'https://Stackoverflow.com/users/5174618', 'pm_score': 3, 'selected': False, 'text': '<p>For IntelliJ 20.1 or above, on Mac OSX:</p>\n\n<p><strong>IntelliJ IDEA -> Editor -> General ->  Appearance -> Show line numbers</strong></p>\n\n<p><strong>Point to be noted:</strong>  Always look for <code>Editor</code></p>\n\n<p><a href="https://i.stack.imgur.com/nESrm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nESrm.png" alt="enter image description here"></a></p>\n\n<p>For shortcut:</p>\n\n<p>⌘ + ⇧ + A (command + shift + A)</p>\n\n<p>type <a href="https://i.stack.imgur.com/G9ILU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/G9ILU.png" alt="enter image description here"></a></p>\n\n<p>and click on the pop up to turn on <code>Show line numbers</code> and you are good to go.</p>\n'}]
['https://Stackoverflow.com/questions/13751', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']