2
0

[VSCode] [Python] 一括コメントアウト

Last updated at Posted at 2024-01-08

VSCodeにおける一括コメントアウトについて

環境

  • MacOS Monterey
  • Python3.11.1

手順

  1. [command] + [/]
    (Windowsの場合、[CTRL] + [/])
# count = 0
# while True:
#     if count >= 5:
#         break
#     print(count)
#     count += 1

count = 0
while True:
   if count >= 5:
       break
   if count ==2:
       count += 1
       continue

   print(count)
   count += 1

他のプログラミング言語

言語 1行コメント ブロックコメント
Python # """ """ または ''' '''
HTML なし <!-- -->
CSS なし /* */
JavaScript // /* */
Swift // /* */

参考リンク

コメントアウト一覧
Swiftのコメントアウト

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0