Display the current line and column numbers in Visual Studio 2010

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.

enter image description here

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)