LoginSignup
0
0
お題は不問!Qiita Engineer Festa 2024で記事投稿!
Qiita Engineer Festa20242024年7月17日まで開催中!

Visual StudioとVisual Assistの記号自動補完を停止する(閉じカッコやコメント行のアスタリスクなど)

Last updated at Posted at 2024-06-14

概要

Visual Studioのテキストエディタはデフォルトで様々な記号を自動補完しますが、これを止める方法をまとめました。

自動補完とは、たとえばカッコ開きを入力するとカッコ閉じ、コメント開始(/*)を入力するとコメント閉じが自動補完されます。
image.png

以下はC++の場合ですが、他の言語でも同様かと思います。

カッコ閉じやコメント閉じの自動補完を止める方法

Optionsを開き、Text Editor -> C/C++ -> General -> Settings にある Automatic brace completionを切ります。
image.png

Visual Assistの自動カッコ閉じを止める方法

Visual Assistにも同様の機能があり、以下のように Editor -> Insert () and closing } ) ] ' " のチェックを外すことで無効化できます。
image.png

コメント行の改行によるアスタリスク自動補完を止める方法

デフォルトでは、コメント行で改行すると以下のとおりアスタリスクが挿入されます。
image.png

Optionsを開き、Text Editor -> C/C++ -> Code Style -> Comments にある Insert existing comment style at the start of new lines when writing comments を切ります。
image.png

0
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
0
0