Line numbers

This is a discussion on Line numbers within the Tech Board forums, part of the Community Boards category; I just have a quick question, is there a way to display the line numbers in the area where you ...

  1. #1
    Registered User cdn_bacon's Avatar
    Join Date
    Mar 2007
    Posts
    17

    Line numbers

    I just have a quick question, is there a way to display the line numbers in the area where you write your code in Visual C++ 2005? When there is an error after I compile it gives you the line number but aside from counting them there doesn't seem to be an easy way to figure out which line has the issue.
    Last edited by cdn_bacon; 04-28-2007 at 12:14 PM.

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,636
    Tools -> Options -> Text Editor -> General -> All Languages -> General -> Display -> Line Numbers
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User cdn_bacon's Avatar
    Join Date
    Mar 2007
    Posts
    17
    awesome, thanks laserlight!

  4. #4
    Registered User
    Join Date
    Aug 2006
    Posts
    99
    Double-click on the error message. That will take you directly to the line.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with reading numbers from the command line
    By Nterpol in forum C Programming
    Replies: 4
    Last Post: 06-01-2006, 01:40 AM
  2. Help displaying line numbers of a text document
    By Japatron in forum C Programming
    Replies: 4
    Last Post: 05-04-2006, 01:34 PM
  3. Showing Line Numbers in MSVC++
    By drdroid in forum Windows Programming
    Replies: 1
    Last Post: 01-09-2003, 02:23 PM
  4. Specifying Line Numbers
    By drdroid in forum C++ Programming
    Replies: 1
    Last Post: 05-25-2002, 11:00 AM
  5. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 03:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21