├── art ├── input.png ├── output.png └── context-menu.png ├── src ├── Resources │ └── Icon.png ├── source.extension.ico ├── Commands │ ├── BaseCommand.cs │ ├── ModeCommand.cs │ ├── CommandRegistration.cs │ └── SortCommand.cs ├── Properties │ └── AssemblyInfo.cs ├── Options.cs ├── source.extension.cs ├── Helpers │ └── Logger.cs ├── source.extension.vsixmanifest ├── CssSorterPackage.cs ├── VSCommandTable.cs ├── packages.config ├── NodeProcess.cs ├── VSCommandTable.vsct ├── source.extension.resx └── CssSorter.csproj ├── .gitignore ├── .github ├── ISSUE_TEMPLATE.md └── CONTRIBUTING.md ├── .gitattributes ├── LICENSE ├── appveyor.yml ├── CHANGELOG.md ├── CssSorter.sln ├── README.md └── .editorconfig /art/input.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/CssSorterVS/master/art/input.png -------------------------------------------------------------------------------- /art/output.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/CssSorterVS/master/art/output.png -------------------------------------------------------------------------------- /art/context-menu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/CssSorterVS/master/art/context-menu.png -------------------------------------------------------------------------------- /src/Resources/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/CssSorterVS/master/src/Resources/Icon.png -------------------------------------------------------------------------------- /src/source.extension.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/madskristensen/CssSorterVS/master/src/source.extension.ico -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | packages 2 | 3 | # User files 4 | *.suo 5 | *.user 6 | *.sln.docstates 7 | .vs/ 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Rr]elease/ 12 | x64/ 13 | [Bb]in/ 14 | [Oo]bj/ 15 | 16 | # MSTest test Results 17 | [Tt]est[Rr]esult*/ 18 | [Bb]uild[Ll]og.* 19 | 20 | # NCrunch 21 | *.ncrunchsolution 22 | *.ncrunchproject 23 | _NCrunch_WebCompiler -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Installed product versions 2 | - Visual Studio: [example 2015 Professional] 3 | - This extension: [example 1.1.21] 4 | 5 | ### Description 6 | Replace this text with a short description 7 | 8 | ### Steps to recreate 9 | 1. Replace this 10 | 2. text with 11 | 3. the steps 12 | 4. to recreate 13 | 14 | ### Current behavior 15 | Explain what it's doing and why it's wrong 16 | 17 | ### Expected behavior 18 | Explain what it should be doing after it's fixed. -------------------------------------------------------------------------------- /src/Commands/BaseCommand.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.OLE.Interop; 2 | using System; 3 | 4 | namespace CssSorter 5 | { 6 | abstract class BaseCommand : IOleCommandTarget 7 | { 8 | public IOleCommandTarget Next { get; set; } 9 | 10 | public abstract int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut); 11 | 12 | public abstract int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2016 Mads Kristensen 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /src/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using CssSorter; 2 | using System.Reflection; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle(Vsix.Name)] 6 | [assembly: AssemblyDescription(Vsix.Description)] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany(Vsix.Author)] 9 | [assembly: AssemblyProduct(Vsix.Name)] 10 | [assembly: AssemblyCopyright(Vsix.Author)] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: AssemblyVersion(Vsix.Version)] 17 | [assembly: AssemblyFileVersion(Vsix.Version)] 18 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | image: Visual Studio 2017 2 | 3 | install: 4 | - ps: (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex 5 | 6 | before_build: 7 | - ps: Vsix-IncrementVsixVersion | Vsix-UpdateBuildVersion 8 | - ps: Vsix-TokenReplacement src\source.extension.cs 'Version = "([0-9\\.]+)"' 'Version = "{version}"' 9 | 10 | build_script: 11 | - nuget restore -Verbosity quiet 12 | - msbuild /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m 13 | 14 | after_test: 15 | - ps: Vsix-PushArtifacts | Vsix-PublishToGallery 16 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Road map 2 | 3 | - [ ] Make work on `.less` and `.scss` files 4 | 5 | Features that have a checkmark are complete and available for 6 | download in the 7 | [CI build](http://vsixgallery.com/extension/7df8a985-0e26-4aab-95fc-f48ee61b086a/). 8 | 9 | # Change log 10 | 11 | These are the changes to each version that has been released 12 | on the official Visual Studio extension gallery. 13 | 14 | ## 0.8 15 | 16 | - [x] Fixed encoding issue 17 | 18 | ## 0.6 19 | 20 | - [x] Make sorting mode configuration 21 | - [x] Apply sorting on *Format Document* 22 | 23 | ## 0.5 24 | 25 | - [x] Initial release 26 | - [x] Install npm modules 27 | - [x] Command on CSS context menu 28 | -------------------------------------------------------------------------------- /src/Options.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.Shell; 2 | using System; 3 | using System.ComponentModel; 4 | 5 | namespace CssSorter 6 | { 7 | public class Options : DialogPage 8 | { 9 | // General 10 | private const string _general = "General"; 11 | 12 | [Category(_general)] 13 | [DisplayName("Mode")] 14 | [Description("Determines what algorithm to use for sorting the properties.")] 15 | [DefaultValue(Mode.SMACSS)] 16 | [TypeConverter(typeof(EnumConverter))] 17 | public Mode Mode { get; set; } = Mode.SMACSS; 18 | } 19 | 20 | public enum Mode 21 | { 22 | Alphabetically, 23 | SMACSS, 24 | Concentric, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /src/source.extension.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This file was generated by Extensibility Tools v1.10.188 4 | // 5 | // ------------------------------------------------------------------------------ 6 | namespace CssSorter 7 | { 8 | static class Vsix 9 | { 10 | public const string Id = "87534672-5a41-4ea1-a145-17f1a8f5502a"; 11 | public const string Name = "CSS Sorter"; 12 | public const string Description = @"Sort CSS properties easily for better readibility and GZIP compression"; 13 | public const string Language = "en-US"; 14 | public const string Version = "0.8"; 15 | public const string Author = "Mads Kristensen"; 16 | public const string Tags = "CSS, LESS, Sass, Scss, Sorting"; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/Helpers/Logger.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Microsoft.VisualStudio.Shell; 3 | using Microsoft.VisualStudio.Shell.Interop; 4 | 5 | internal static class Logger 6 | { 7 | private static IVsOutputWindowPane _pane; 8 | private static IVsOutputWindow _output = (IVsOutputWindow)ServiceProvider.GlobalProvider.GetService(typeof(SVsOutputWindow)); 9 | 10 | public static void Log(object message) 11 | { 12 | try 13 | { 14 | if (EnsurePane()) 15 | { 16 | _pane.OutputString(DateTime.Now.ToString() + ": " + message + Environment.NewLine); 17 | } 18 | } 19 | catch (Exception ex) 20 | { 21 | System.Diagnostics.Debug.Write(ex); 22 | } 23 | } 24 | 25 | private static bool EnsurePane() 26 | { 27 | if (_pane == null) 28 | { 29 | var guid = Guid.NewGuid(); 30 | _output.CreatePane(ref guid, CssSorter.Vsix.Name, 1, 1); 31 | _output.GetPane(ref guid, out _pane); 32 | } 33 | 34 | return _pane != null; 35 | } 36 | } -------------------------------------------------------------------------------- /CssSorter.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.26212.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "JavaScriptPrettier", "src\CssSorter.csproj", "{D1F752E5-6CAB-4513-980A-51B44E104CDF}" 7 | EndProject 8 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{50552A90-8343-4135-A563-AE454C22F3D6}" 9 | ProjectSection(SolutionItems) = preProject 10 | .editorconfig = .editorconfig 11 | appveyor.yml = appveyor.yml 12 | CHANGELOG.md = CHANGELOG.md 13 | README.md = README.md 14 | EndProjectSection 15 | EndProject 16 | Global 17 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 18 | Debug|Any CPU = Debug|Any CPU 19 | Release|Any CPU = Release|Any CPU 20 | EndGlobalSection 21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 22 | {D1F752E5-6CAB-4513-980A-51B44E104CDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 23 | {D1F752E5-6CAB-4513-980A-51B44E104CDF}.Debug|Any CPU.Build.0 = Debug|Any CPU 24 | {D1F752E5-6CAB-4513-980A-51B44E104CDF}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {D1F752E5-6CAB-4513-980A-51B44E104CDF}.Release|Any CPU.Build.0 = Release|Any CPU 26 | EndGlobalSection 27 | GlobalSection(SolutionProperties) = preSolution 28 | HideSolutionNode = FALSE 29 | EndGlobalSection 30 | EndGlobal 31 | -------------------------------------------------------------------------------- /src/source.extension.vsixmanifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CSS Sorter 6 | Sort CSS properties easily for better readibility and GZIP compression 7 | https://github.com/madskristensen/CssSorter 8 | Resources\LICENSE 9 | https://github.com/madskristensen/CssSorter/blob/master/CHANGELOG.md 10 | Resources\Icon.png 11 | Resources\Icon.png 12 | CSS, LESS, Sass, Scss, Sorting 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /src/CssSorterPackage.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio; 2 | using Microsoft.VisualStudio.Shell; 3 | using Microsoft.VisualStudio.Shell.Interop; 4 | using System; 5 | using System.Runtime.InteropServices; 6 | using System.Threading; 7 | using Tasks = System.Threading.Tasks; 8 | 9 | namespace CssSorter 10 | { 11 | [PackageRegistration(UseManagedResourcesOnly = true, AllowsBackgroundLoading = true)] 12 | [InstalledProductRegistration(Vsix.Name, Vsix.Description, Vsix.Version)] 13 | [Guid(PackageGuids.guidPackageString)] 14 | [ProvideOptionPage(typeof(Options), "Web", Vsix.Name, 101, 111, true, new[] { "css", "sort" }, ProvidesLocalizedCategoryName = false)] 15 | [ProvideMenuResource("Menus.ctmenu", 1)] 16 | public sealed class CssSorterPackage : AsyncPackage 17 | { 18 | private static Options _options; 19 | private static object _syncRoot = new object(); 20 | 21 | public static Options Options 22 | { 23 | get 24 | { 25 | if (_options == null) 26 | { 27 | lock (_syncRoot) 28 | { 29 | if (_options == null) 30 | { 31 | EnsurePackageLoaded(); 32 | } 33 | } 34 | } 35 | 36 | return _options; 37 | } 38 | } 39 | 40 | protected override Tasks.Task InitializeAsync(CancellationToken cancellationToken, IProgress progress) 41 | { 42 | _options = (Options)GetDialogPage(typeof(Options)); 43 | 44 | return base.InitializeAsync(cancellationToken, progress); 45 | } 46 | 47 | private static void EnsurePackageLoaded() 48 | { 49 | var shell = (IVsShell)GetGlobalService(typeof(SVsShell)); 50 | 51 | if (shell.IsPackageLoaded(ref PackageGuids.guidPackage, out IVsPackage package) != VSConstants.S_OK) 52 | ErrorHandler.Succeeded(shell.LoadPackage(ref PackageGuids.guidPackage, out package)); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/VSCommandTable.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This file was generated by Extensibility Tools v1.10.188 4 | // 5 | // ------------------------------------------------------------------------------ 6 | namespace CssSorter 7 | { 8 | using System; 9 | 10 | /// 11 | /// Helper class that exposes all GUIDs used across VS Package. 12 | /// 13 | internal sealed partial class PackageGuids 14 | { 15 | public const string guidPackageString = "fe3dc58f-c4c7-4d03-a8de-a53fbcf7ee20"; 16 | public const string guidPackageCmdSetString = "e4cb03b4-95a5-4808-b6c6-d6f24387d39b"; 17 | public const string CssEditorString = "a5401142-f49d-43db-90b1-f57ba349e55c"; 18 | public const string CssEditorWithEncodingString = "226f7e34-0ae8-4157-9cd8-b66b4eaf2c7b"; 19 | public const string CssCmdSetString = "64da400e-b4ad-4d67-aa92-4b7acb01ecd5"; 20 | public static Guid guidPackage = new Guid(guidPackageString); 21 | public static Guid guidPackageCmdSet = new Guid(guidPackageCmdSetString); 22 | public static Guid CssEditor = new Guid(CssEditorString); 23 | public static Guid CssEditorWithEncoding = new Guid(CssEditorWithEncodingString); 24 | public static Guid CssCmdSet = new Guid(CssCmdSetString); 25 | } 26 | /// 27 | /// Helper class that encapsulates all CommandIDs uses across VS Package. 28 | /// 29 | internal sealed partial class PackageIds 30 | { 31 | public const int ContextMenuGroup = 0x1020; 32 | public const int SettingsGroup = 0x1030; 33 | public const int ExecuteGroup = 0x1040; 34 | public const int ContextMenu = 0x1200; 35 | public const int SortId = 0x0100; 36 | public const int SortAlphabeticallyId = 0x0200; 37 | public const int SortSmacssId = 0x0300; 38 | public const int SortConcentricId = 0x0400; 39 | public const int cssContextMenu = 0x0002; 40 | public const int groupFormat = 0x0082; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSS Sorter 2 | 3 | [![Build status](https://ci.appveyor.com/api/projects/status/qpgnlho3cps0f7qs?svg=true)](https://ci.appveyor.com/project/madskristensen/csssortervs) 4 | 5 | Download this extension from the [Marketplace](https://marketplace.visualstudio.com/items?itemName=MadsKristensen.CSSSorter) 6 | or get the [CI build](http://vsixgallery.com/extension/87534672-5a41-4ea1-a145-17f1a8f5502a/). 7 | 8 | --------------------------------------- 9 | 10 | Sort CSS properties easily for better readibility and GZIP compression 11 | 12 | See the [change log](CHANGELOG.md) for changes and road map. 13 | 14 | ## Features 15 | 16 | - Sorts CSS properties 17 | - Uses [CSS Declaration Sorter](https://github.com/ben-eb/css-declaration-sorter) node module under the hood 18 | - How it works 19 | 20 | ### Sort properties 21 | This extension calls the [CSS Declaration Sorter](https://github.com/ben-eb/css-declaration-sorter) node module behind the scenes to perform the property sorting. 22 | 23 | Invoke the command from the context menu in the CSS editor. 24 | 25 | ![Context Menu](art/context-menu.png) 26 | 27 | #### Example 28 | 29 | This input: 30 | 31 | ![Input](art/input.png) 32 | 33 | Becomes turns into this after sorting with the SMACSS sorting mode: 34 | 35 | ![Output](art/output.png) 36 | 37 | ### How it works 38 | The first time a .css file is opened in Visual Studio after installing this extension, the [css-declaration-sorter](https://github.com/ben-eb/css-declaration-sorter) npm package is being installed into *%LocalAppData%\Temp\CSS Sorter*. It can take up to a minute but usually not more. You have to be online for it to install. 39 | 40 | When the npm package has been installed, the context menu button lights up in the CSS editor. When the button is clicked, a process is being started that calls the npm package using Node.js. 41 | 42 | So make sure to have Node.js installed or the latest ASP.NET Web Development Tools for Visual Studio which includes Node.js. 43 | 44 | ## Contribute 45 | Check out the [contribution guidelines](.github/CONTRIBUTING.md) 46 | if you want to contribute to this project. 47 | 48 | For cloning and building this project yourself, make sure 49 | to install the 50 | [Extensibility Tools 2015](https://visualstudiogallery.msdn.microsoft.com/ab39a092-1343-46e2-b0f1-6a3f91155aa6) 51 | extension for Visual Studio which enables some features 52 | used by this project. 53 | 54 | ## License 55 | [Apache 2.0](LICENSE) -------------------------------------------------------------------------------- /src/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /src/Commands/ModeCommand.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio; 2 | using Microsoft.VisualStudio.OLE.Interop; 3 | using System; 4 | 5 | namespace CssSorter 6 | { 7 | internal sealed class ModeCommand : BaseCommand 8 | { 9 | private Guid _commandGroup = PackageGuids.guidPackageCmdSet; 10 | 11 | public override int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 12 | { 13 | if (pguidCmdGroup == _commandGroup) 14 | { 15 | switch (nCmdID) 16 | { 17 | case PackageIds.SortAlphabeticallyId: 18 | Execute(Mode.Alphabetically); 19 | return VSConstants.S_OK; 20 | case PackageIds.SortSmacssId: 21 | Execute(Mode.SMACSS); 22 | return VSConstants.S_OK; 23 | case PackageIds.SortConcentricId: 24 | Execute(Mode.Concentric); 25 | return VSConstants.S_OK; 26 | } 27 | } 28 | 29 | return Next.Exec(pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut); 30 | } 31 | 32 | private void Execute(Mode mode) 33 | { 34 | CssSorterPackage.Options.Mode = mode; 35 | CssSorterPackage.Options.SaveSettingsToStorage(); 36 | } 37 | 38 | public override int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 39 | { 40 | if (pguidCmdGroup == _commandGroup) 41 | { 42 | if (prgCmds[0].cmdID == PackageIds.SortAlphabeticallyId) 43 | { 44 | prgCmds[0].cmdf = GetFlags(Mode.Alphabetically); 45 | return VSConstants.S_OK; 46 | } 47 | else if (prgCmds[0].cmdID == PackageIds.SortSmacssId) 48 | { 49 | prgCmds[0].cmdf = GetFlags(Mode.SMACSS); 50 | return VSConstants.S_OK; 51 | } 52 | else if (prgCmds[0].cmdID == PackageIds.SortConcentricId) 53 | { 54 | prgCmds[0].cmdf = GetFlags(Mode.Concentric); 55 | return VSConstants.S_OK; 56 | } 57 | } 58 | 59 | return Next.QueryStatus(pguidCmdGroup, cCmds, prgCmds, pCmdText); 60 | } 61 | 62 | private static uint GetFlags(Mode mode) 63 | { 64 | if (CssSorterPackage.Options.Mode == mode) 65 | { 66 | return (uint)OLECMDF.OLECMDF_ENABLED | (uint)OLECMDF.OLECMDF_SUPPORTED | (uint)OLECMDF.OLECMDF_LATCHED; 67 | } 68 | else 69 | { 70 | return (uint)OLECMDF.OLECMDF_ENABLED | (uint)OLECMDF.OLECMDF_SUPPORTED; 71 | } 72 | } 73 | } 74 | } -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome:http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # Don't use tabs for indentation. 7 | [*] 8 | indent_style = space 9 | end_of_line = crlf 10 | # (Please don't specify an indent_size here; that has too many unintended consequences.) 11 | 12 | # Code files 13 | [*.{cs,csx,vb,vbx}] 14 | indent_size = 4 15 | 16 | # Xml project files 17 | [*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}] 18 | indent_size = 2 19 | 20 | # Xml config files 21 | [*.{props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct}] 22 | indent_size = 2 23 | 24 | # JSON files 25 | [*.json] 26 | indent_size = 2 27 | 28 | # Dotnet code style settings: 29 | [*.{cs,vb}] 30 | # Sort using and Import directives with System.* appearing first 31 | dotnet_sort_system_directives_first = true 32 | # Avoid "this." and "Me." if not necessary 33 | dotnet_style_qualification_for_field = false:suggestion 34 | dotnet_style_qualification_for_property = false:suggestion 35 | dotnet_style_qualification_for_method = false:suggestion 36 | dotnet_style_qualification_for_event = false:suggestion 37 | 38 | # Use language keywords instead of framework type names for type references 39 | dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion 40 | dotnet_style_predefined_type_for_member_access = true:suggestion 41 | 42 | # Suggest more modern language features when available 43 | dotnet_style_object_initializer = true:suggestion 44 | dotnet_style_collection_initializer = true:suggestion 45 | dotnet_style_coalesce_expression = true:suggestion 46 | dotnet_style_null_propagation = true:suggestion 47 | dotnet_style_explicit_tuple_names = true:suggestion 48 | 49 | # CSharp code style settings: 50 | [*.cs] 51 | # Prefer "var" everywhere 52 | csharp_style_var_for_built_in_types = false:suggestion 53 | csharp_style_var_when_type_is_apparent = true:suggestion 54 | csharp_style_var_elsewhere = false:suggestion 55 | 56 | # Prefer method-like constructs to have a block body 57 | csharp_style_expression_bodied_methods = false:none 58 | csharp_style_expression_bodied_constructors = false:none 59 | csharp_style_expression_bodied_operators = false:none 60 | 61 | # Prefer property-like constructs to have an expression-body 62 | csharp_style_expression_bodied_properties = true:none 63 | csharp_style_expression_bodied_indexers = true:none 64 | csharp_style_expression_bodied_accessors = true:none 65 | 66 | # Suggest more modern language features when available 67 | csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion 68 | csharp_style_pattern_matching_over_as_with_null_check = true:suggestion 69 | csharp_style_inlined_variable_declaration = true:suggestion 70 | csharp_style_throw_expression = true:suggestion 71 | csharp_style_conditional_delegate_call = true:suggestion 72 | 73 | # Newline settings 74 | csharp_new_line_before_open_brace = all 75 | csharp_new_line_before_else = true 76 | csharp_new_line_before_catch = true 77 | csharp_new_line_before_finally = true 78 | csharp_new_line_before_members_in_object_initializers = true 79 | csharp_new_line_before_members_in_anonymous_types = true -------------------------------------------------------------------------------- /src/Commands/CommandRegistration.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio.Editor; 2 | using Microsoft.VisualStudio.Shell; 3 | using Microsoft.VisualStudio.Shell.Interop; 4 | using Microsoft.VisualStudio.Text; 5 | using Microsoft.VisualStudio.Text.Editor; 6 | using Microsoft.VisualStudio.Text.Operations; 7 | using Microsoft.VisualStudio.TextManager.Interop; 8 | using Microsoft.VisualStudio.Utilities; 9 | using System; 10 | using System.ComponentModel.Composition; 11 | using System.IO; 12 | using System.Linq; 13 | 14 | namespace CssSorter 15 | { 16 | [Export(typeof(IVsTextViewCreationListener))] 17 | [ContentType("CSS")] 18 | [TextViewRole(PredefinedTextViewRoles.PrimaryDocument)] 19 | internal sealed class CommandRegistration : IVsTextViewCreationListener 20 | { 21 | public static string[] FileExtensions { get; } = { ".css" }; 22 | 23 | [Import] 24 | private IVsEditorAdaptersFactoryService AdaptersFactory { get; set; } 25 | 26 | [Import] 27 | private ITextDocumentFactoryService DocumentService { get; set; } 28 | 29 | [Import] 30 | private ITextBufferUndoManagerProvider UndoProvider { get; set; } 31 | 32 | public async void VsTextViewCreated(IVsTextView textViewAdapter) 33 | { 34 | IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter); 35 | 36 | if (!DocumentService.TryGetTextDocument(view.TextBuffer, out ITextDocument doc)) 37 | return; 38 | 39 | string ext = Path.GetExtension(doc.FilePath); 40 | 41 | if (!FileExtensions.Contains(ext, StringComparer.OrdinalIgnoreCase)) 42 | return; 43 | 44 | ITextBufferUndoManager undoManager = UndoProvider.GetTextBufferUndoManager(view.TextBuffer); 45 | NodeProcess node = view.Properties.GetOrCreateSingletonProperty(() => new NodeProcess()); 46 | 47 | AddCommandFilter(textViewAdapter, new SortCommand(view, undoManager, node)); 48 | AddCommandFilter(textViewAdapter, new ModeCommand()); 49 | 50 | if (!node.IsReadyToExecute()) 51 | { 52 | await Install(node); 53 | } 54 | } 55 | 56 | private static async System.Threading.Tasks.Task Install(NodeProcess node) 57 | { 58 | var statusbar = (IVsStatusbar)ServiceProvider.GlobalProvider.GetService(typeof(SVsStatusbar)); 59 | 60 | statusbar.FreezeOutput(0); 61 | statusbar.SetText($"Installing {NodeProcess.Packages} npm modules..."); 62 | statusbar.FreezeOutput(1); 63 | 64 | bool success = await node.EnsurePackageInstalled(); 65 | string status = success ? "Done" : "Failed"; 66 | 67 | statusbar.FreezeOutput(0); 68 | statusbar.SetText($"Installing {NodeProcess.Packages} npm modules... {status}"); 69 | statusbar.FreezeOutput(1); 70 | } 71 | 72 | private void AddCommandFilter(IVsTextView textViewAdapter, BaseCommand command) 73 | { 74 | textViewAdapter.AddCommandFilter(command, out var next); 75 | command.Next = next; 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /src/Commands/SortCommand.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.VisualStudio; 2 | using Microsoft.VisualStudio.OLE.Interop; 3 | using Microsoft.VisualStudio.Shell; 4 | using Microsoft.VisualStudio.Text; 5 | using Microsoft.VisualStudio.Text.Editor; 6 | using Microsoft.VisualStudio.Text.Operations; 7 | using System; 8 | using System.Threading.Tasks; 9 | 10 | namespace CssSorter 11 | { 12 | internal sealed class SortCommand : BaseCommand 13 | { 14 | private Guid _commandGroup = PackageGuids.guidPackageCmdSet; 15 | private const uint _commandId = PackageIds.SortId; 16 | 17 | private IWpfTextView _view; 18 | private ITextBufferUndoManager _undoManager; 19 | private NodeProcess _node; 20 | 21 | public SortCommand(IWpfTextView view, ITextBufferUndoManager undoManager, NodeProcess node) 22 | { 23 | _view = view; 24 | _undoManager = undoManager; 25 | _node = node; 26 | } 27 | 28 | public override int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut) 29 | { 30 | if (pguidCmdGroup == _commandGroup && nCmdID == _commandId) 31 | { 32 | if (_node != null && _node.IsReadyToExecute()) 33 | { 34 | ThreadHelper.JoinableTaskFactory.RunAsync(() => ExecuteAsync(_view, _undoManager, _node)); 35 | } 36 | 37 | return VSConstants.S_OK; 38 | } 39 | 40 | return Next.Exec(pguidCmdGroup, nCmdID, nCmdexecopt, pvaIn, pvaOut); 41 | } 42 | 43 | private static async Task ExecuteAsync(IWpfTextView view, ITextBufferUndoManager undoManager, NodeProcess node) 44 | { 45 | string input = view.TextBuffer.CurrentSnapshot.GetText(); 46 | string output = await node.ExecuteProcess(input); 47 | 48 | if (string.IsNullOrEmpty(output) || input == output) 49 | return false; 50 | 51 | using (ITextEdit edit = view.TextBuffer.CreateEdit()) 52 | using (ITextUndoTransaction undo = undoManager.TextBufferUndoHistory.CreateTransaction("Sort properties")) 53 | { 54 | edit.Replace(0, view.TextBuffer.CurrentSnapshot.Length, output); 55 | edit.Apply(); 56 | 57 | undo.Complete(); 58 | } 59 | 60 | return true; 61 | } 62 | 63 | public override int QueryStatus(ref Guid pguidCmdGroup, uint cCmds, OLECMD[] prgCmds, IntPtr pCmdText) 64 | { 65 | if (pguidCmdGroup == _commandGroup && prgCmds[0].cmdID == _commandId) 66 | { 67 | if (_node != null) 68 | { 69 | if (_node.IsReadyToExecute()) 70 | { 71 | prgCmds[0].cmdf = (uint)OLECMDF.OLECMDF_ENABLED | (uint)OLECMDF.OLECMDF_SUPPORTED; 72 | } 73 | else 74 | { 75 | prgCmds[0].cmdf = (uint)OLECMDF.OLECMDF_SUPPORTED; 76 | } 77 | } 78 | 79 | return VSConstants.S_OK; 80 | } 81 | 82 | return Next.QueryStatus(pguidCmdGroup, cCmds, prgCmds, pCmdText); 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /src/NodeProcess.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Diagnostics; 3 | using System.IO; 4 | using System.Reflection; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace CssSorter 9 | { 10 | internal class NodeProcess 11 | { 12 | public const string Packages = "postcss-cli css-declaration-sorter@1.6.0 postcss-less postcss-scss"; 13 | 14 | private static string _installDir = Path.Combine(Path.GetTempPath(), Vsix.Name, Packages.GetHashCode().ToString()); 15 | private static string _executable = Path.Combine(_installDir, "node_modules\\.bin\\cssdeclsort.cmd"); 16 | 17 | public bool IsInstalling 18 | { 19 | get; 20 | private set; 21 | } 22 | 23 | public bool IsReadyToExecute() 24 | { 25 | return File.Exists(_executable); 26 | } 27 | 28 | public async Task EnsurePackageInstalled() 29 | { 30 | if (IsInstalling) 31 | return false; 32 | 33 | if (IsReadyToExecute()) 34 | return true; 35 | 36 | bool success = await Task.Run(() => 37 | { 38 | IsInstalling = true; 39 | 40 | try 41 | { 42 | if (!Directory.Exists(_installDir)) 43 | Directory.CreateDirectory(_installDir); 44 | 45 | var start = new ProcessStartInfo("cmd", $"/c npm install {Packages}") 46 | { 47 | WorkingDirectory = _installDir, 48 | UseShellExecute = false, 49 | RedirectStandardOutput = true, 50 | CreateNoWindow = true, 51 | }; 52 | 53 | ModifyPathVariable(start); 54 | 55 | using (var proc = Process.Start(start)) 56 | { 57 | proc.WaitForExit(); 58 | return proc.ExitCode == 0; 59 | } 60 | } 61 | catch (Exception ex) 62 | { 63 | Logger.Log(ex); 64 | return false; 65 | } 66 | finally 67 | { 68 | IsInstalling = false; 69 | } 70 | }); 71 | 72 | return success; 73 | } 74 | 75 | public async Task ExecuteProcess(string input) 76 | { 77 | if (!await EnsurePackageInstalled()) 78 | return null; 79 | 80 | string sortingMode = GetSortingMode(); 81 | 82 | var start = new ProcessStartInfo("cmd", $"/c \"{_executable}\" --order {sortingMode}") 83 | { 84 | UseShellExecute = false, 85 | CreateNoWindow = true, 86 | RedirectStandardOutput = true, 87 | RedirectStandardInput = true, 88 | RedirectStandardError = true, 89 | StandardOutputEncoding = Encoding.UTF8, 90 | StandardErrorEncoding = Encoding.UTF8, 91 | }; 92 | 93 | ModifyPathVariable(start); 94 | 95 | try 96 | { 97 | using (var proc = Process.Start(start)) 98 | { 99 | using (var stream = new StreamWriter(proc.StandardInput.BaseStream, Encoding.UTF8)) 100 | { 101 | await stream.WriteAsync(input); 102 | } 103 | 104 | string output = await proc.StandardOutput.ReadToEndAsync(); 105 | string error = await proc.StandardError.ReadToEndAsync(); 106 | 107 | if (!string.IsNullOrEmpty(error)) 108 | Logger.Log(error); 109 | 110 | proc.WaitForExit(); 111 | return output; 112 | } 113 | } 114 | catch (Exception ex) 115 | { 116 | Logger.Log(ex); 117 | return null; 118 | } 119 | } 120 | 121 | private string GetSortingMode() 122 | { 123 | switch (CssSorterPackage.Options.Mode) 124 | { 125 | case Mode.Alphabetically: 126 | return "alphabetically"; 127 | case Mode.SMACSS: 128 | return "smacss"; 129 | } 130 | 131 | return "concentric-css"; 132 | } 133 | 134 | private static void ModifyPathVariable(ProcessStartInfo start) 135 | { 136 | string path = start.EnvironmentVariables["PATH"]; 137 | 138 | var process = Process.GetCurrentProcess(); 139 | string ideDir = Path.GetDirectoryName(process.MainModule.FileName); 140 | 141 | if (Directory.Exists(ideDir)) 142 | { 143 | string parent = Directory.GetParent(ideDir).Parent.FullName; 144 | 145 | string rc2Preview1Path = new DirectoryInfo(Path.Combine(parent, @"Web\External")).FullName; 146 | 147 | if (Directory.Exists(rc2Preview1Path)) 148 | { 149 | path += ";" + rc2Preview1Path; 150 | path += ";" + rc2Preview1Path + "\\git"; 151 | } 152 | else 153 | { 154 | path += ";" + Path.Combine(ideDir, @"Extensions\Microsoft\Web Tools\External"); 155 | path += ";" + Path.Combine(ideDir, @"Extensions\Microsoft\Web Tools\External\git"); 156 | } 157 | } 158 | 159 | start.EnvironmentVariables["PATH"] = path; 160 | } 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /src/VSCommandTable.vsct: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | Sort Properties 26 | 27 | 28 | 29 | 30 | 31 | 44 | 45 | 46 | 53 | 60 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /src/source.extension.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | text/microsoft-resx 110 | 111 | 112 | 2.0 113 | 114 | 115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | 118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 119 | 120 | 121 | CSS Sorter 122 | 123 | 124 | Sort CSS properties easily for better readibility and GZIP compression 125 | 126 | 127 | 128 | source.extension.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a 129 | 130 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Looking to contribute something? **Here's how you can help.** 4 | 5 | Please take a moment to review this document in order to make the contribution 6 | process easy and effective for everyone involved. 7 | 8 | Following these guidelines helps to communicate that you respect the time of 9 | the developers managing and developing this open source project. In return, 10 | they should reciprocate that respect in addressing your issue or assessing 11 | patches and features. 12 | 13 | 14 | ## Using the issue tracker 15 | 16 | The issue tracker is the preferred channel for [bug reports](#bug-reports), 17 | [features requests](#feature-requests) and 18 | [submitting pull requests](#pull-requests), but please respect the 19 | following restrictions: 20 | 21 | * Please **do not** use the issue tracker for personal support requests. Stack 22 | Overflow is a better place to get help. 23 | 24 | * Please **do not** derail or troll issues. Keep the discussion on topic and 25 | respect the opinions of others. 26 | 27 | * Please **do not** open issues or pull requests which *belongs to* third party 28 | components. 29 | 30 | 31 | ## Bug reports 32 | 33 | A bug is a _demonstrable problem_ that is caused by the code in the repository. 34 | Good bug reports are extremely helpful, so thanks! 35 | 36 | Guidelines for bug reports: 37 | 38 | 1. **Use the GitHub issue search** — check if the issue has already been 39 | reported. 40 | 41 | 2. **Check if the issue has been fixed** — try to reproduce it using the 42 | latest `master` or development branch in the repository. 43 | 44 | 3. **Isolate the problem** — ideally create an 45 | [SSCCE](http://www.sscce.org/) and a live example. 46 | Uploading the project on cloud storage (OneDrive, DropBox, et el.) 47 | or creating a sample GitHub repository is also helpful. 48 | 49 | 50 | A good bug report shouldn't leave others needing to chase you up for more 51 | information. Please try to be as detailed as possible in your report. What is 52 | your environment? What steps will reproduce the issue? What browser(s) and OS 53 | experience the problem? Do other browsers show the bug differently? What 54 | would you expect to be the outcome? All these details will help people to fix 55 | any potential bugs. 56 | 57 | Example: 58 | 59 | > Short and descriptive example bug report title 60 | > 61 | > A summary of the issue and the Visual Studio, browser, OS environments 62 | > in which it occurs. If suitable, include the steps required to reproduce the bug. 63 | > 64 | > 1. This is the first step 65 | > 2. This is the second step 66 | > 3. Further steps, etc. 67 | > 68 | > `` - a link to the project/file uploaded on cloud storage or other publicly accessible medium. 69 | > 70 | > Any other information you want to share that is relevant to the issue being 71 | > reported. This might include the lines of code that you have identified as 72 | > causing the bug, and potential solutions (and your opinions on their 73 | > merits). 74 | 75 | 76 | ## Feature requests 77 | 78 | Feature requests are welcome. But take a moment to find out whether your idea 79 | fits with the scope and aims of the project. It's up to *you* to make a strong 80 | case to convince the project's developers of the merits of this feature. Please 81 | provide as much detail and context as possible. 82 | 83 | 84 | ## Pull requests 85 | 86 | Good pull requests, patches, improvements and new features are a fantastic 87 | help. They should remain focused in scope and avoid containing unrelated 88 | commits. 89 | 90 | **Please ask first** before embarking on any significant pull request (e.g. 91 | implementing features, refactoring code, porting to a different language), 92 | otherwise you risk spending a lot of time working on something that the 93 | project's developers might not want to merge into the project. 94 | 95 | Please adhere to the [coding guidelines](#code-guidelines) used throughout the 96 | project (indentation, accurate comments, etc.) and any other requirements 97 | (such as test coverage). 98 | 99 | Adhering to the following process is the best way to get your work 100 | included in the project: 101 | 102 | 1. [Fork](http://help.github.com/fork-a-repo/) the project, clone your fork, 103 | and configure the remotes: 104 | 105 | ```bash 106 | # Clone your fork of the repo into the current directory 107 | git clone https://github.com//.git 108 | # Navigate to the newly cloned directory 109 | cd 110 | # Assign the original repo to a remote called "upstream" 111 | git remote add upstream https://github.com/madskristensen/.git 112 | ``` 113 | 114 | 2. If you cloned a while ago, get the latest changes from upstream: 115 | 116 | ```bash 117 | git checkout master 118 | git pull upstream master 119 | ``` 120 | 121 | 3. Create a new topic branch (off the main project development branch) to 122 | contain your feature, change, or fix: 123 | 124 | ```bash 125 | git checkout -b 126 | ``` 127 | 128 | 4. Commit your changes in logical chunks. Please adhere to these [git commit 129 | message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) 130 | or your code is unlikely be merged into the main project. Use Git's 131 | [interactive rebase](https://help.github.com/articles/interactive-rebase) 132 | feature to tidy up your commits before making them public. Also, prepend name of the feature 133 | to the commit message. For instance: "SCSS: Fixes compiler results for IFileListener.\nFixes `#123`" 134 | 135 | 5. Locally merge (or rebase) the upstream development branch into your topic branch: 136 | 137 | ```bash 138 | git pull [--rebase] upstream master 139 | ``` 140 | 141 | 6. Push your topic branch up to your fork: 142 | 143 | ```bash 144 | git push origin 145 | ``` 146 | 147 | 7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) 148 | with a clear title and description against the `master` branch. 149 | 150 | 151 | ## Code guidelines 152 | 153 | - Always use proper indentation. 154 | - In Visual Studio under `Tools > Options > Text Editor > C# > Advanced`, make sure 155 | `Place 'System' directives first when sorting usings` option is enabled (checked). 156 | - Before committing, organize usings for each updated C# source file. Either you can 157 | right-click editor and select `Organize Usings > Remove and sort` OR use extension 158 | like [BatchFormat](http://visualstudiogallery.msdn.microsoft.com/a7f75c34-82b4-4357-9c66-c18e32b9393e). 159 | - Before committing, run Code Analysis in `Debug` configuration and follow the guidelines 160 | to fix CA issues. Code Analysis commits can be made separately. 161 | -------------------------------------------------------------------------------- /src/CssSorter.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | $(VisualStudioVersion) 5 | $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) 6 | true 7 | v3 8 | Program 9 | $(DevEnvDir)\devenv.exe 10 | /rootsuffix Exp 11 | 12 | 13 | 14 | 15 | 16 | Debug 17 | AnyCPU 18 | 2.0 19 | {82b43b9b-a64c-4715-b499-d71e9ca2bd60};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 20 | {D1F752E5-6CAB-4513-980A-51B44E104CDF} 21 | Library 22 | Properties 23 | CssSorter 24 | CssSorter 25 | v4.5.2 26 | true 27 | true 28 | true 29 | true 30 | true 31 | false 32 | 33 | 34 | true 35 | full 36 | false 37 | bin\Debug\ 38 | DEBUG;TRACE 39 | prompt 40 | 4 41 | 42 | 43 | pdbonly 44 | true 45 | bin\Release\ 46 | TRACE 47 | prompt 48 | 4 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | Component 60 | 61 | 62 | 63 | source.extension.vsixmanifest 64 | 65 | 66 | True 67 | True 68 | VSCommandTable.vsct 69 | 70 | 71 | 72 | 73 | Resources\LICENSE 74 | true 75 | 76 | 77 | 78 | Designer 79 | VsixManifestGenerator 80 | source.extension.resx 81 | 82 | 83 | 84 | 85 | False 86 | False 87 | 88 | 89 | False 90 | False 91 | 92 | 93 | False 94 | False 95 | 96 | 97 | False 98 | False 99 | 100 | 101 | 102 | 103 | False 104 | False 105 | 106 | 107 | 108 | ..\packages\Microsoft.VisualStudio.CoreUtility.14.3.25407\lib\net45\Microsoft.VisualStudio.CoreUtility.dll 109 | False 110 | 111 | 112 | ..\packages\Microsoft.VisualStudio.Editor.14.3.25407\lib\net45\Microsoft.VisualStudio.Editor.dll 113 | False 114 | 115 | 116 | ..\packages\Microsoft.VisualStudio.Imaging.14.3.25407\lib\net45\Microsoft.VisualStudio.Imaging.dll 117 | False 118 | 119 | 120 | ..\packages\Microsoft.VisualStudio.OLE.Interop.7.10.6070\lib\Microsoft.VisualStudio.OLE.Interop.dll 121 | False 122 | 123 | 124 | ..\packages\Microsoft.VisualStudio.Shell.14.0.14.3.25407\lib\Microsoft.VisualStudio.Shell.14.0.dll 125 | False 126 | 127 | 128 | ..\packages\Microsoft.VisualStudio.Shell.Immutable.10.0.10.0.30319\lib\net40\Microsoft.VisualStudio.Shell.Immutable.10.0.dll 129 | False 130 | 131 | 132 | ..\packages\Microsoft.VisualStudio.Shell.Immutable.11.0.11.0.50727\lib\net45\Microsoft.VisualStudio.Shell.Immutable.11.0.dll 133 | False 134 | 135 | 136 | ..\packages\Microsoft.VisualStudio.Shell.Immutable.12.0.12.0.21003\lib\net45\Microsoft.VisualStudio.Shell.Immutable.12.0.dll 137 | False 138 | 139 | 140 | ..\packages\Microsoft.VisualStudio.Shell.Immutable.14.0.14.3.25407\lib\net45\Microsoft.VisualStudio.Shell.Immutable.14.0.dll 141 | False 142 | 143 | 144 | ..\packages\Microsoft.VisualStudio.Shell.Interop.7.10.6071\lib\Microsoft.VisualStudio.Shell.Interop.dll 145 | False 146 | 147 | 148 | True 149 | ..\packages\Microsoft.VisualStudio.Shell.Interop.10.0.10.0.30319\lib\Microsoft.VisualStudio.Shell.Interop.10.0.dll 150 | True 151 | 152 | 153 | True 154 | ..\packages\Microsoft.VisualStudio.Shell.Interop.11.0.11.0.61030\lib\Microsoft.VisualStudio.Shell.Interop.11.0.dll 155 | True 156 | 157 | 158 | True 159 | ..\packages\Microsoft.VisualStudio.Shell.Interop.12.0.12.0.30110\lib\Microsoft.VisualStudio.Shell.Interop.12.0.dll 160 | True 161 | 162 | 163 | ..\packages\Microsoft.VisualStudio.Shell.Interop.8.0.8.0.50727\lib\Microsoft.VisualStudio.Shell.Interop.8.0.dll 164 | False 165 | 166 | 167 | ..\packages\Microsoft.VisualStudio.Shell.Interop.9.0.9.0.30729\lib\Microsoft.VisualStudio.Shell.Interop.9.0.dll 168 | False 169 | 170 | 171 | ..\packages\Microsoft.VisualStudio.Text.Data.14.3.25407\lib\net45\Microsoft.VisualStudio.Text.Data.dll 172 | False 173 | 174 | 175 | ..\packages\Microsoft.VisualStudio.Text.Logic.14.3.25407\lib\net45\Microsoft.VisualStudio.Text.Logic.dll 176 | False 177 | 178 | 179 | ..\packages\Microsoft.VisualStudio.Text.UI.14.3.25407\lib\net45\Microsoft.VisualStudio.Text.UI.dll 180 | False 181 | 182 | 183 | ..\packages\Microsoft.VisualStudio.Text.UI.Wpf.14.3.25407\lib\net45\Microsoft.VisualStudio.Text.UI.Wpf.dll 184 | False 185 | 186 | 187 | ..\packages\Microsoft.VisualStudio.TextManager.Interop.7.10.6070\lib\Microsoft.VisualStudio.TextManager.Interop.dll 188 | False 189 | 190 | 191 | ..\packages\Microsoft.VisualStudio.TextManager.Interop.8.0.8.0.50727\lib\Microsoft.VisualStudio.TextManager.Interop.8.0.dll 192 | False 193 | 194 | 195 | ..\packages\Microsoft.VisualStudio.Threading.14.1.111\lib\net45\Microsoft.VisualStudio.Threading.dll 196 | False 197 | 198 | 199 | ..\packages\Microsoft.VisualStudio.Utilities.14.3.25407\lib\net45\Microsoft.VisualStudio.Utilities.dll 200 | False 201 | 202 | 203 | ..\packages\Microsoft.VisualStudio.Validation.14.1.111\lib\net45\Microsoft.VisualStudio.Validation.dll 204 | False 205 | 206 | 207 | False 208 | False 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | Menus.ctmenu 220 | VsctGenerator 221 | VSCommandTable.cs 222 | 223 | 224 | 225 | 226 | true 227 | 228 | 229 | source.extension.vsixmanifest 230 | 231 | 232 | 233 | 234 | True 235 | True 236 | source.extension.vsixmanifest 237 | true 238 | VSPackage 239 | 240 | 241 | 242 | 243 | 250 | --------------------------------------------------------------------------------