VS Code错误的标尺行

时间:2019-12-29 10:53:32

标签: visual-studio-code vscode-settings rulers

我正在尝试将标尺添加到我的编辑器中。但是,统治者相距遥远。我尝试偏移它们,但是偏移因文件而异。

The columns are drawn at 93 and 102

我还要添加设置json文件,并将标尺设置为72和79。

    {
    "window.closeWhenEmpty": false,
    "editor.emptySelectionClipboard": false,
    "editor.dragAndDrop": false,
    "files.insertFinalNewline": true,
    "editor.fontFamily": "Source Code Pro",
    "editor.fontSize": 18,
    "editor.selectionHighlight": true,
    "window.openFilesInNewWindow": "off",
    "workbench.editor.enablePreview": false,
    "editor.scrollBeyondLastLine": true,
    "window.title": "${activeEditorShort}${separator}${rootName}",
    "files.trimTrailingWhitespace": true,
    "editor.wordWrap": "off",
    "editor.multiCursorModifier": "ctrlCmd",
    "editor.snippetSuggestions": "top",
    "files.autoSave": "afterDelay",
    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
    "workbench.colorTheme": "One Monokai Darker",
    "editor.minimap.enabled": true,
    "workbench.startupEditor": "newUntitledFile",
    "workbench.activityBar.visible": false,
    "C_Cpp.default.cppStandard": "c++17",
    "C_Cpp.default.cStandard": "c11",
    "python.autoComplete.addBrackets": true,
    "terminal.integrated.cursorStyle": "line",
    "terminal.integrated.fontSize": 16,
    "terminal.integrated.cursorBlinking": true,
    "terminal.integrated.cwd": "C:\\Box Sync",
    "terminal.integrated.fontFamily": "monospace",
    "C_Cpp.updateChannel": "Insiders",
    "git.ignoreMissingGitWarning": true,
    "editor.letterSpacing": 2,
    "terminal.integrated.letterSpacing": 2,
    "markdown.preview.lineHeight": 2,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "python.jediEnabled": false,
    "editor.rulers": [
        72,79
    ]
}

1 个答案:

答案 0 :(得分:0)

我使用的字体没有统一的宽度。因此,尽管我正在设置标尺,但它们并不准确。我目前使用的是Fira代码,并且标尺现在可以正常工作。