LoginSignup
2
0

More than 5 years have passed since last update.

[Resharper] if/for/foreachで中身が1行でも中括弧で囲むようにする設定に変更

Last updated at Posted at 2017-09-18

ResharperのCleanup Codeで1行の時と直後にtry-catchがある場合に中括弧が消されないようにする設定方法

検証環境

Resharper Ultimate 2017.2

設定方法

Options > Code Editing > C# > Code Style > Braces で該当箇所を Enforce always に変更する

image.png

参考

c# - ReSharper - force curly braces around single line - Stack Overflow

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