Make the code folding icons always show in Visual Studio Code

后端 未结 2 752
梦如初夏
梦如初夏 2020-12-11 18:44

Loving using Visual Studio Code but one peeve is that I always think my code isn\'t indented properly since the left edge of the actual editor is kind of far from the number

相关标签:
2条回答
  • 2020-12-11 19:10

    You cannot make code folding icons appear persistently. It is discussed here on project github page however it is not implemented yet.

    If you want proper indentation your best bet is indentation guides (the vertical lines that run down to matching indents).

    Indentation guides are not displayed by default.
    To enable indent guides go to File --> Preferences --> Settings and then place following line in settings.json file,

    "editor.renderIndentGuides": true
    

    0 讨论(0)
  • 2020-12-11 19:14

    To change the color of the gutter, you can add following to the user settings:

    "workbench.colorCustomizations": {
        "editorGutter.background": "#abcdef"
    }
    

    And to show folding icons:

    "editor.showFoldingControls": "always"
    

    Note that this setting requires you to have at least 1.13.

    0 讨论(0)
提交回复
热议问题