Display the current line and column numbers in Visual Studio 2010
Have you tried this?
Tools->Options->Environment->General->Show status bar
If there's anyone with version 16.4.x or later wondering where it went, it got moved from the Status Bar to the bottom right of the editor window.
Please note that Col
(column) is omitted from the status bar when it has the same value as Ch
(character), as is the case when using spaces for indentation. Spaces will always increment Col
and Ch
together, whereas tabs will increment the Ch
value by one while incrementing the Col
value by whatever the tab width is set to be (e.g. 4).
Examples:
Tabs
--->--->Hello, World!
^
Ch: 16 Col: 22
Spaces
········Hello, World!
^
Ch: 22 Col: 22
If your cursor is at the tail end of the line, the Ch
and Col
values reflect the 1-indexed position denoted by the caret. Col
would be omitted from the status bar in the second example.
In case anyone else has the same problem as me, I found that the line number and column didn't show up in the status bar until I hid some of the other information that was there - my extensions added a lot of items.
Right-clicking on the status bar gives a list of what's being shown there (excluding default stuff like columns, confusingly), and you can untick things to hide them. Untick enough, and line and column numbers should come back!
Related discussion in GitHub issue: https://github.com/microsoft/vscode/issues/60537#issuecomment-974647350