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?

More than 5 years have passed since last update.

Unityのコード編集時にVisual Studioで { を自動改行させたくないとき(波括弧, curly bracket)

Last updated at Posted at 2018-04-15

Unityでコード編集時にデフォルトのMonoDevelopでなくVisual Studioのエディタを使用していて、{を改行させたくない宗派の人向けです。

Visual Studioを開き、「ツール」=>「オプション」を選択
1.jpg

「テキストエディター」=>「C#」=>「書式設定」=>「改行」を選択
2.jpg

そして「中かっこの改行オプション」のチェックボックスを外すと{が改行されなくなります。
私は全てのチェックボックスを外しました。最後に「OK」ボタンを選択すると設定されます。
3.PNG

下記が設定前と設定後の例です。

Before

class C
{
}

void foo
{
}

After

class C {
}

void foo {
}
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?