Dreamescaper / IntelliSenseExtender

GNU General Public License v3.0
88 stars 17 forks source link

Request: Respect the position of usings and sorting #9

Closed zuckerthoben closed 6 years ago

zuckerthoben commented 6 years ago

This extension automatically puts usings at the top of the file. StyleCop and other analyzers however are enforcing usings inside the namespace.

See:

// <copyright file="DbInitialization.cs" company="COMPANY">
// Copyright (c) COMPANY. All rights reserved.
// </copyright>

namespace COMPANY.DatabaseContext.Initialization
{
    using System.IO;
    using System.Linq;
    using System.Reflection;
    using Microsoft.EntityFrameworkCore;

With the extension I end up with mixed using positions and I have to manually resort them everytime. Often times when you are in the flow of coding you arent actually noticing the namespace that the extender put in.

So my request is to respect the position of current usings in a code file and to also respect the configured sorting rules.

Dreamescaper commented 6 years ago

Yeah... Was already looking at that, and fixed partially (unreleased yet) - now it is added at sorted place, but still ignores usings inside namespaces. Will take a look soon

Dreamescaper commented 6 years ago

Fixed in latest master. Will try to release to Marketplace either today or tomorrow