最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

VS Code and Python: auto-closing of triple quotes when Pylance is not enabled - Stack Overflow

programmeradmin3浏览0评论

I'm using VS Code 1.98.0 and the Python package (ms-python.python) version 2025.2.0. I would like to have auto-closing pairs for triple quotes (for docstrings) without using Pylance.

When Pylance is enabled, typing """ automatically writes """""" with the cursor in the middle, but when Pylance is disabled or uninstalled, typing three quotes does nothing much. Is it possible to force the six-quotes behaviour without using Pylance? Should I file a feature request to update VS Code Python's language-configuration.json to include triple quotes in the auto-closing pairs?

发布评论

评论列表(0)

  1. 暂无评论