1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Visual Studioで、ソースコードをまとめてコメントアウトする、コメントアウトを解除する

Posted at

Visual Studioで、ソースコードをまとめてコメントアウトする、コメントアウトを解除する方法を紹介します。

GUI操作

「編集(E) > 詳細(V)」 から「行コメントの切り替え(L)」「選択範囲のコメント(M)」「選択範囲のコメントを解除(E)」を目的に合わせて選択します。

image.png

ショートカット操作

  • 行コメントの切り替え : Ctrl+K, Ctrl+/
  • 選択範囲のコメント : Ctrl+K, Ctrl+C
  • 選択範囲のコメントを解除 : Ctrl+K, Ctrl+U

環境情報

Microsoft Visual Studio Community 2022 (64 ビット) - Current
Version 17.10.4
1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?