visual-studio-code - 关于line length linter 80 characters的一个问题

标签 visual-studio-code

我在 vscode 中使用 R,当一行超过 80 个字符时,它会抛出一个带有波浪线的注释:Lines should not more than 80 characters。 line_length_linter。但是我没有在 lint 中找到 R 来更改它。此外,在setting.json中,虽然我在互联网上搜索它,但我不知道参数配置的名称。 enter image description here

最佳答案

刚遇到同样的问题。我找到了一个 workaround suggested for Atom IDE它也适用于 VSCode。

在您的项目文件夹中创建一个 .lintr 文件并添加以下一行:

linters: with_defaults(line_length_linter=line_length_linter(100))

有关更多配置选项,请查看 lintr package documentation .

关于visual-studio-code - 关于line length linter 80 characters的一个问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67481802/

相关文章:

带有 VSCode 的 JavaFX-11

debugging - 无法在 IntelliJ 中调试 Go 应用程序

python - 如何在 Visual Studio 代码的 Python 扩展中选择一个子文件夹作为包含测试的目录

visual-studio-code - 如何导出 Visual Studio Code 扩展列表?

visual-studio-code - VS代码是否支持虚拟空间?

visual-studio-code - 如何设置 vscode 的代码片段,以便在自动完成后自动触发 vscode 的智能感知?

visual-studio-code - 用于在 Visual Studio Code 中导航工作文件的键盘快捷键

visual-studio-code - 在 VSCode 中使用俄语时删除黄色矩形

ASP.NET核心: Dependencies: Latest Versions

windows - "Firebase cannot be loading because running scripts is disabled on this system",Windows 上的 VSCode