13

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.

rfay
  • 5,101
  • 25
  • 46
Ryan
  • 920
  • 15
  • 36

3 Answers3

32
  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.

Joey
  • 316,376
  • 76
  • 642
  • 652
  • Whew! One down, one to go. Any idea how to get the lines before the code to go away? I've been exploring the text editor options and can't seem to find the right one. I'm so happy to have the breakpoint bar there again, though! – Ryan Jun 28 '12 at 22:33
  • Ha! You're a genius. I always use ctrl+e+d to reformat code, and I must have hit e+s one of those times. Thanks Joey, it's been bothering me for weeks! – Ryan Jun 28 '12 at 22:35
4

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

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

Aesthete
  • 17,256
  • 6
  • 32
  • 43
  • 1
    They didn't complain about the line numbers. – Joey Jun 28 '12 at 22:31
  • Thanks for the indication marker one, although joey just barely beat you to it. – Ryan Jun 28 '12 at 22:34
  • 2
    Well I wasn't sure exactly what "dang lines in front of the code" are. If he was referring to the YELLOW LINES to the LEFT of the code he should have been more explicit. – Aesthete Jun 28 '12 at 22:34
  • No problem Ryan, glad I could help (albeit a bit late). – Aesthete Jun 28 '12 at 22:35
  • Sorry about that, I didn't know exactly what they were called or why it was even showing them, but it was as above, just the spaces being replaced by a bunch of --- was annoying. – Ryan Jun 28 '12 at 22:36
1

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,
vike
  • 153
  • 2
  • 5