开发者

How do I turn off try/catch block code completion in ReSharper?

开发者 https://www.devze.com 2023-01-12 02:16 出处:网络
When I start typing a try/catch block, ReSharper causes it to be expanded from try { to try { } catch(Exception)

When I start typing a try/catch block, ReSharper causes it to be expanded from

try {

to

try
{
}
catch(Exception)
{
}

I appreciate ReSharper trying to do me a favour, but this is one of those instances where I'd prefer to do it myself seeing as I'm often going back and adding the try block later, or typing a try/finally block without a catch c开发者_JAVA百科lause.

Where do I turn off this behaviour in ReSharper?


ReSharper menu / Live Templates

Under Predefined Templates / C# / Imported Visual C# Snippets

Uncheck try and tryf.

0

精彩评论

暂无评论...
验证码 换一张
取 消