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; }
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
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.