1

What is the value of the "Ch" indicator in Visual Studio? How does it differ from "Col"? It doesn't seem to; the status bar at the bottom of the VS editor keeps you apprised of where you are in the code editor, giving you a line (LN) number, column (Col) number, and a character (I think) number (Ch), such as:

enter image description here

It seems the "Col" and the "Ch" are in lockstop, and that makes sense: each "column" is one character wide. If I'm right, what's the use of showing both? If I'm wrong, when can "Col" and "Ch" differ in value, and why would anyone care? My intuition (even men have it some times, even though it's usually wrong, in my experience) nudges me that this may have something to do with alternative character sets or something...

B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862

1 Answers1

1

In Visual Studio, select Tools > Options > C#/your language > Tabs. Under Tab, you can choose Keep tabs instead of insert spaces. This will give different Ch and Col counts.

enter image description here

You can also insert zero width spaces and get different Ch and Col counts.

HaveSpacesuit
  • 3,572
  • 6
  • 40
  • 59