Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 clause.

Where do I turn off this behaviour in ReSharper?

like image 517
Nathan Ridley Avatar asked Jan 22 '23 14:01

Nathan Ridley


1 Answers

ReSharper menu / Live Templates

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

Uncheck try and tryf.

like image 153
TrueWill Avatar answered Jan 28 '23 06:01

TrueWill