我正try 在vscode中为C和Python文件添加自定义尺子.以下是我的settings.json文件
{
"C_Cpp.updateChannel": "Insiders",
"editor.inlineSuggest.enabled": true,
"security.workspace.trust.untrustedFiles": "open",
"python.defaultInterpreterPath": "C:\\Path\\to\\my\\python.exe",
"python.formatting.provider": "black",
"[C_Cpp]": {
"editor.rulers": [
80
],
},
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.rulers": [
88
],
},
}
这是我的main.cpp文件
#include <iostream>
int main()
{
return 0;
}
对于.py文件,尺子可以正确显示,但.C.C..cpp.cpp文件不显示预期的标尺.