Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Update November 2015: </p> <h2>In Eclipse Mars 4.5.1, line numbers are (annoyingly) turned off by default again. Follow the below instructions to enable it.</h2> <hr> <p>Update December 2013: </p> <p><a href="http://www.vogella.com/people/larsvogel.html" rel="nofollow noreferrer">Lars Vogel</a> just <a href="http://blog.vogella.com/2013/12/10/line-numbers-are-default-in-eclipse-sdk-luna-as-of-today/" rel="nofollow noreferrer">published on his blog</a>:</p> <h2>Line numbers are default in Eclipse SDK Luna (4.4) as of today</h2> <p>(December 10, 2013)</p> <blockquote> <p>We conducted a user survey if users want to have line numbers activated in text editors in the Eclipse IDE by default.<br> The response was very clear:</p> </blockquote> <pre><code>YES : 80.07% (1852 responses) NO : 19.93% (461 responses) Total : 2313 Skipped: 15 </code></pre> <blockquote> <p>With <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=421313" rel="nofollow noreferrer">Bug 421313</a>, <a href="https://git.eclipse.org/r/#/c/18233/" rel="nofollow noreferrer">Review - Line number should be activated by default</a>, we enabled it for the Eclipse SDK build, I assume other Eclipse packages will follow.</p> </blockquote> <hr> <p>Update August 2014</p> <p><strong>Line number default length</strong> is now <strong>120</strong> (instead of 80) for Eclipse Mars 4.5M1.<br> See "<a href="https://stackoverflow.com/a/25250064/6309">How to customize Eclipse's text editor code formating</a>".</p> <hr> <p>Original answer (March 2009)</p> <p>To really have it by default, you can write a script which ensure, before launching eclipse, that:<br> <strong><code>[workspace]\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs</code></strong> does contain:</p> <pre><code>lineNumberRuler=true </code></pre> <p>(with <code>[workspace]</code> being the root directory of your eclipse workspace)<br> Then eclipse will be opened with "line numbers shown 'by default' "</p> <hr> <p>Otherwise, you can also type 'CTRL+1' and then "line", which will give you access to the command "Show line numbers"<br> (that will switch to option "show line numbers" in the text editors part of the option.</p> <p>Or you can just type "numb" in Windows Preferences to access to the Text Editor part:</p> <p><img src="https://i.stack.imgur.com/DY3h7.png" alt="show line number"></p> <p><sup>Picture from "<a href="http://www.mkyong.com/eclipse/how-to-display-line-numbers-in-eclipse/" rel="nofollow noreferrer">How to display line numbers in Eclipse</a>" of blog "<a href="http://www.mkyong.com/" rel="nofollow noreferrer">Mkyong.com</a>"</sup></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload