Is there an option to display line numbers in the gutter? I'm trying to fine it but can't seem to...
Printable View
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;
}
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.