在 Visual Studio Code 中注释 Python 代码

jag*_*man 3 python comments visual-studio-code

当我尝试使用组合键+ +注释代码块时,我的 Visual Studio Code 注释 Python 代码时'''使用的是而不是使用。#CtrlShifta

我使用的是 Ubuntu 16.04。

Sud*_*med 8

对于 VS Code 和 Python,

  • 选择代码块

  • 评论请按:Ctrl+ k+u

  • 要取消注释,请按:Ctrl+ k+u


小智 6

在 Windows 环境下这对我有用:

  • 选择块文本
  • CTRL + /