visual-studio-code - 如何在 VS Code 中为 Jupyter Notebook 显示文档字符串或函数签名?

标签 visual-studio-code jupyter-notebook vscode-settings docstring

我目前已经安装了 VS Code 作为 Jupyterlab 的替代编辑器,用于 Python 数据科学开发。现在我想知道如何显示函数的文档字符串或签名?

我没有发现任何有关需要更改设置的快捷方式的信息。

最佳答案

您可以在 settings.json 中更改这些设置:

// Controls if quick suggestions should show up while typing
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": false
    },
Docstring example of the print function while typing in a vscode jupyter notebook

关于visual-studio-code - 如何在 VS Code 中为 Jupyter Notebook 显示文档字符串或函数签名?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60203867/

相关文章:

visual-studio-code - 当工作区不是当前项目时,Live Server 扩展不起作用

r - 如何检测函数是否在 Rstudio 或 Jupyter Notebook 中被调用

python - 如何在jupyter中添加conda环境

visual-studio-code - 如何更改差异颜色 Visual Studio Code

.net - 如何在 VSCode 中调试 MSTest?

python - 导入库 'SeleniumLibrary' 失败 : ModuleNotFoundError: No module named 'SeleniumLibrary' In VS Code

python - 在 VS Code 中安装 mypy 的问题

ios - 异常 : CocoaPods not installed or not in valid state

python-3.x - Jupyter:嵌入实时交互式小部件

visual-studio-code - Visual Studio 代码按子词空白导航