Domanda

So I hit some weird combination of keystrokes, and now my visual studio looks all jacked up and I can't figure out how to customize it back to what it was. I've googled it lots, and I can't seem to find out where to fix it all.

It's just the code editor that's been bugging me for weeks. I figured some of you could probably help.

It looks like this: Visual Studio Code Window Messed Up

I just want the dang lines in front of the code to go away, and to be able to click to the left of the numbered lines to get a breakpoint again.

È stato utile?

Soluzione

  1. Go to ToolsOptionsText EditorGeneral
  2. Check Indicator Margin

enter image description here

I'm not sure what »dang lines in front of the code« you mean, though. If you're referring to the yellow unsaved changes indicator, that's the Selection Margin in the options above. If you mean the dots (representing spaces), then EditAdvancedView White Space or press Ctrl+E, S.

Altri suggerimenti

Tools -> Options -> Text Editor -> Indication Marker (For border breakpoints)

Tools -> Options -> Text Editor -> All Languages -> Line Numbers (For line numbers)

For Visual Studio Code (aka VSCode), and my years later
almost exact same question (whereas I misinterpreted the
setting description), I found my similar but different answer:

Enable it like following in Settings GUI:

Editor: Glyph Margin
🗹 Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.

Or write equivalent to following in settings.json:

  "editor.glyphMargin": true,
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top