Enable the display of line numbers in Visual Studio

前端 未结 15 1149
暗喜
暗喜 2020-12-23 15:38

Why doesn\'t Visual Studio have any way of showing line numbers in a source file? Is there any way to enable it, or a plugin for it? I know that the number of lines of code

15条回答
  •  北海茫月
    2020-12-23 16:01

    You should edit "settings.json". In that add, "editor.lineNumbers":"on", . You can check comments for various options you have.

    In Visual Studio Code - 2017, you can also directly go to a given line number. There are following three ways to do that.

    1. Directly use keyboard shortcut - Ctrl + G.
    2. Under menu Go, use Go to Line - Go > Go to Line
    3. Search for Go to Line in Command Pallete (Cmd + Shift + P).

提交回复
热议问题