mardi 6 juin 2017

How can I make resharper let me tab after else

Currently if I have

    if(thing)
        dostuff;
    else

and then try to push tab after the else resharper forces a new-line

    if(thing)
        dostuff;
    else
    {
    }

whereas what I want is to insert a tab character. Like the tab button should do as I often like having comments after if/else and prefer them to be tab-aligned

    if(thing)     //etc
        dostuff;
    else          //etc
    {
    }

I've turned off both Braces and Parentheses options in

Environment->Editor->Editor Behaviour

as well as unchecking "else" in the Templates Explorer. Are there more options elsewhere I can access dealing with this? Is there some way to make Resharper just plain never, ever, ever add braces, newlines or parenthesis without me telling it to? And generally allow me to use the tab key like I would were it not installed?

Aucun commentaire:

Enregistrer un commentaire