我正在尝试为我的 VSCode 更漂亮(扩展)设置设置不同的行宽,但没有任何运气。在 ~root/.vscode/settings.json 中尝试了带前缀或不带前缀的不同变体:
"max-len": 120,
"printWidth": 120
"editor.max-len": 120,
"editor.printWidth": 120
"prettier.max-len": 120,
"prettier.printWidth": 120
Run Code Online (Sandbox Code Playgroud)
都不尊重规则。
我该如何解决?