Pylance:微软为 Visual Studio Code 提供的 Python 语言智能(language server)扩展,主要用于代码补全、类型检查、跳转到定义、重构提示等(常与 IntelliSense 相关功能一起使用)。该词在实际使用中多指 VS Code 里的 “Pylance” 扩展本身。
/ˈpaɪlæns/
这是一个产品/扩展名称,常被理解为由 “Py-”(Python 的常见缩写前缀)与 “-lance”(“长矛/突刺”,引申为“快速、精准地指向”)组合而成,用来暗示对 Python 代码的快速智能分析与定位。它并非传统意义上的历史英语词汇演变。
Pylance gives me better autocompletion in VS Code.
Pylance 让我在 VS Code 里获得更好的自动补全。
After enabling Pylance, the editor flagged several type issues in my project and suggested fixes before I ran any tests.
启用 Pylance 后,编辑器在我运行测试之前就标出了项目里的几个类型问题,并给出了修复建议。