jra*_*rez 7 python python-2.7 python-3.x visual-studio-code
我刚刚下载了vscode ver 1.0,我非常喜欢它.然而它看起来像"转到符号"不适用于python源文件?我尝试过安装不同的扩展程序,但我似乎无法使用它.这不完全支持吗?
我确实尝试了一个node.js项目文件夹,并且转到符号在那里完美运行.
有人能指点我的文档吗?也许我可以写自己的go to symbol插件.
谢谢你的时间.
这对我有用,但仅适用于本地文件。请参阅下面的屏幕截图:
我在 Windows 7 上使用可移植的 1.0.0 zip。我安装了Don Jayamanne 的 Python 扩展。也许你需要它才能工作?没有尝试过。
如果您不熟悉该扩展,如果 python 不在您的 PATH 中,则安装后需要进行一些配置更改。
你必须使用这些配置更新来告诉它你的 python 所在的位置:
在用户设置文件 (settings.json) 中配置 python 解释器的路径,如下所示。确保指定 python 可执行文件的完全限定名称。"python.pythonPath":"c:/python27/python.exe"
我也更新了调试设置,不确定这是否有任何影响。
Simply provide the fully qualified path to the python executable in the "python" setting within the configuration settings in the launch.json file as follows:
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"program": "${file}",
"pythonPath": "c:/python27/python.exe",
"debugOptions": [
"WaitOnAbnormalExit",
"WaitOnNormalExit",
"RedirectOutput"
]
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7912 次 |
| 最近记录: |