Is there an option to display line numbers in the gutter? I'm trying to fine it but can't seem to...
This is a discussion on MSVC++ Display Line Numbers? within the C++ Programming forums, part of the General Programming Boards category; Is there an option to display line numbers in the gutter? I'm trying to fine it but can't seem to......
Is there an option to display line numbers in the gutter? I'm trying to fine it but can't seem to...
In the gutter? What are talking about? What's the gutter? You might try putting the __LINE__ macro in your code if that's what you are talking about:
Should say "This is line #5" if you type it in exactly as it is above.Code:#include <iostream> int main() { std::cout << "This is line #" << __LINE__ << std::endl; return 0; }
I used to be an adventurer like you... then I took an arrow to the knee.
If you are looking at errors, just double-click the error adn the line will be highlighted. Alternatively the line number is always displayed in the status bar as well.