【发布时间】:2020-10-29 02:26:50
【问题描述】:
我无法在 VSCODE 上对 Selenium 使用 Intellisense 或高亮显示。例如,键入时不提供“send_keys”命令,或者“driver.find_element_by_xpath”不是彩色的。我已经安装了 Python 扩展并寻找 Selenium 扩展,但没有找到任何东西。
这是我的 settings.json:
{
"editor.suggestSelection": "first",
"python.languageServer": "Microsoft",
"python.pythonPath": "/usr/local/opt/python/bin/python3.7",
"editor.fontSize": 14,
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.linting.flake8Enabled": false,
"python.autoComplete.extraPaths": [
],
"java.semanticHighlighting.enabled": true,
"vsintellicode.modelDownloadPath": ""
}
【问题讨论】:
标签: python selenium visual-studio-code autocomplete syntax-highlighting