How to remove the space on the left side of the editor in Visual Studio

家星 魏 0 Reputation points
2026-05-14T14:44:22.9333333+00:00

How to remove the space on the left side of the editor in Visual Studio?

How to remove the space on the left side of the editor in Visual Studio?

How to remove the space on the left side of the editor in Visual Studio?

Developer technologies | Visual Studio | Setup

1 answer

Sort by: Most helpful
  1. Lizzy Dinh (WICLOUD CORPORATION) 620 Reputation points Microsoft External Staff Moderator
    2026-05-15T08:10:02.7066667+00:00

    Hi @家星 魏 ,

    Thank you for sharing your concern with us, and I truly appreciate your patience while we work through this together.

    I’m very glad to assist you with this. Before we proceed, I’d like to clarify a few points to ensure I can provide the most helpful guidance.

    The space you’re seeing on the left side of the Visual Studio editor isn’t simply “empty space.” It’s called the margin area, and it consists of several useful components designed to enhance your development experience. This area supports:

    • Debugging – allowing you to quickly set or remove breakpoints
    • Navigation – displaying line numbers and markers
    • Code analysis – showing warnings and suggestions

    These features provide valuable visual cues and make certain actions, especially debugging, much easier to perform. If you would still prefer to reduce this space, you can adjust some of these settings by following the steps below:

    • Go to: ToolsOptionsText EditorGeneral
    • Then uncheck:
      • Indicator margin
      • Selection margin
        User's image

    Please note that it isn’t possible to completely remove all margins, as some are essential for Visual Studio’s core functionality. If you frequently debug or rely on visual indicators, I would recommend keeping the glyph margin enabled for convenience.

    I hope this helps you make a more informed decision. If anything is unclear or you’d like further assistance, please don’t hesitate to reach out—I’m always happy to help. I would also greatly appreciate any feedback you may have on the support provided, whenever you have a moment.

    Wishing you a wonderful day and a lovely weekend!

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.