Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: How to add line numbers in Eclipse

  1. #1
    Member
    Join Date
    Jul 2010
    Location
    Washington, USA
    Posts
    307
    Thanks
    16
    Thanked 43 Times in 39 Posts

    Default How to add line numbers in Eclipse

    This tutorial is for people who want to make it a little easier to fix errors.
    Example:



    Step One
    Click window




    Step Two
    Click Preferences




    Step Three
    Click The Arrow by General




    Step Four
    Click the Arrow by Editors




    Step Five
    Click on Text Editors




    Step Six
    Toggle "Show line numbers"




    Step Seven
    Click Apply and OK!




    You should now have the numbers next to each line. Enjoy!
    Last edited by Brt93yoda; August 12th, 2010 at 12:06 PM.

  2. The Following 4 Users Say Thank You to Brt93yoda For This Useful Post:

    Bacon n' Logic (November 12th, 2010), ChristopherLowe (January 5th, 2012), JavaPF (August 13th, 2010), Json (August 16th, 2010)


  3. #2
    Member
    Join Date
    Dec 2011
    Posts
    50
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default Re: How to add line numbers in Eclipse

    This is too complex which involves in doing many steps. Here is the simplest solution: Right click on the left side of the code editor, select 'Show Line Numbers'

  4. The Following User Says Thank You to nickyc For This Useful Post:

    ChristopherLowe (January 5th, 2012)

Similar Threads

  1. How To: Add line numbers to your JTextArea
    By Freaky Chris in forum Java Swing Tutorials
    Replies: 11
    Last Post: October 15th, 2013, 11:22 PM
  2. java - soot issue...counting the jimple line numbers??
    By volatile in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 26th, 2010, 01:49 PM
  3. How to Send command line arguments in Eclipse?
    By JavaPF in forum Java JDK & IDE Tutorials
    Replies: 0
    Last Post: April 23rd, 2009, 12:37 PM
  4. Reading a file line by line using the Scanner class
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: April 17th, 2009, 08:34 AM
  5. How to Read a file line by line using BufferedReader?
    By JavaPF in forum File Input/Output Tutorials
    Replies: 0
    Last Post: May 19th, 2008, 07:32 AM