How to disable try / catch block code completion in ReSharper?

When I start introducing a try / catch block, ReSharper forces it to expand with

try {

to

try
{
}
catch(Exception)
{
}

I appreciate ReSharper, trying to do me a favor, but this is one of those cases where I would prefer to do it myself, because I often come back and add a block trylater, or by typing try/ finallywithout a sentence catch.

Where can I disable this behavior in ReSharper?

+3
source share
1 answer

ReSharper / Live Templates Menu

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

Uncheck the try and tryf boxes.

+9
source

Source: https://habr.com/ru/post/1760608/


All Articles