Tab Formatting Ctrl-K-D and Curly Brace ending

I have my R# tabs and indents for TypeScript configured like this:  

When I use a closing curly brace, it reformats to look like this:  

 

But if I use Ctrl-K-D reformat the document, it looks like this:

I'd like the experience to be consistent, and I prefer that Ctrl-K-D reformats with the larger tab sizes, like the ending curly brace.  How do I fix this?

 

0
1 comment

Hello Rick!

 

Thank you for contacting us.

I suppose the different behavior is caused by the fact that Ctrl+K+D calls VS formatting not ReSharper one.

You can check it by selecting ReSharper reformatting from menu - ReSharper | Edit | Reformat code.

Default shortcuts for ReSharper reformatting are Ctrl+Alt+Enter (in case of VS keyboard scheme) and Ctrl+Alt+L (in case of (IntelliJ IDEA/ ReSharper 2.x keyboard scheme).

Thank you.

0

Please sign in to leave a comment.