【问题标题】:VS Code wrong ruler linesVS Code 标尺线错误
【发布时间】:2019-12-29 10:53:32
【问题描述】:

我正在尝试向我的编辑器添加标尺。然而,统治者已经走远了。我尝试偏移它们,但偏移量因文件而异。

我正在添加设置 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
    ]
}

【问题讨论】:

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


    【解决方案1】:

    我使用的字体没有统一的宽度。所以,我虽然立了尺子,但并不准确。我目前使用 Fira Code,现在标尺工作正常。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-13
      • 2022-08-13
      • 2019-05-30
      • 2016-07-28
      相关资源
      最近更新 更多