Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code Visual Studio代码-没有可用的代码操作_Visual Studio Code - Fatal编程技术网

Visual studio code Visual Studio代码-没有可用的代码操作

Visual studio code Visual Studio代码-没有可用的代码操作,visual-studio-code,Visual Studio Code,我想使用导入缺少的方法、模块等功能。但是,快速修复(ctrl或cmd+)在JS或Python项目中都找不到任何代码操作。灯泡不亮了。 我的用户设置: { "workbench.activityBar.visible": true, "workbench.statusBar.visible": true, "window.zoomLevel": 0, "workbench.iconTheme": "eq-material-theme-icons", "materialTheme.cache.wo

我想使用导入缺少的方法、模块等功能。但是,快速修复(ctrl或cmd+)在JS或Python项目中都找不到任何代码操作。灯泡不亮了。

我的用户设置:

{
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"window.zoomLevel": 0,
"workbench.iconTheme": "eq-material-theme-icons",
"materialTheme.cache.workbench.settings": {
    "themeColours": "Default",
    "accentPrevious": "Graphite"
},
"workbench.colorCustomizations": {},
"workbench.colorTheme": "Material Theme",
"explorer.confirmDragAndDrop": false,
"python.linting.pylintPath": "/usr/local/bin/pylint",
"python.linting.flake8Path": "/usr/local/bin/flake8",
"editor.renderControlCharacters": false,
"workbench.sideBar.location": "left",
}
{
"python.linting.pylintEnabled": true,
"python.linting.pep8Enabled": false,
"python.linting.enabled": true,
"python.pythonPath": "env/bin/python"
}
工作区设置:

{
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"window.zoomLevel": 0,
"workbench.iconTheme": "eq-material-theme-icons",
"materialTheme.cache.workbench.settings": {
    "themeColours": "Default",
    "accentPrevious": "Graphite"
},
"workbench.colorCustomizations": {},
"workbench.colorTheme": "Material Theme",
"explorer.confirmDragAndDrop": false,
"python.linting.pylintPath": "/usr/local/bin/pylint",
"python.linting.flake8Path": "/usr/local/bin/flake8",
"editor.renderControlCharacters": false,
"workbench.sideBar.location": "left",
}
{
"python.linting.pylintEnabled": true,
"python.linting.pep8Enabled": false,
"python.linting.enabled": true,
"python.pythonPath": "env/bin/python"
}

首先,我不确定VSCode是否支持python的自动导入。第二,看起来您并没有严格遵守打包规则(),尽管我相信对于项目根目录上的纯python文件,它们会被识别为包,因为init.py将多个文件的范围映射到解释器理解为单个python模块的结构