Code Cleanup Group Usings

Answered

The code cleanup can sort and optimize usings, but I like the way VS2019 groups usings with spaces like this:

using System;
using System.Diagnostics;
using System.Linq;
using System.Runtime.Caching;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Mvc;
 
using Microsoft.Identity.Client;
 
using Newtonsoft.Json;

Is it possible to configure R# like this, or have it call the VS* command as part of the cleanup?

Cheers!

2 comments
Comment actions Permalink
Official comment

Hello Johan Danforth

Thank you for your question! Please try to set this setting's value to "1":

ReSharper | Options | Code Editing | C# | Formatting Style | Blank Lines | Blank lines in declarations | Between different "using" groups

Comment actions Permalink

Amazing! Thanks! There are just too many options... :D 

0

Please sign in to leave a comment.