Git Product home page Git Product logo

seeusingslater's Introduction

SeeUsingsLater

Simple Visual Studio 2015, 2017, 2019 extension that automatically collapses the using statement regions when a C# code file is opened. When tools make changes to the usings region, it will stay collapsed. Having your caret in the region will prevent it from automatically collapsing.

Release

You can install SeeUsingsLater through the extensions menu in Visual Studio by searching for SeeUsingsLater. You can also find it online in the Gallery.

seeusingslater's People

Contributors

chrisbertranddotnet avatar natehitze avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

seeusingslater's Issues

Only collapse on file open

This plugin keeps collapsing while the file is open and being used.

For example, if I press alt-up or alt-down to reorder the usings lines, the plugin will collapse the section.

It needs to listen for the document open event, perform its work, then do nothing further. Not only is this a bug, it indicates that it is not efficient as it may be listening for the wrong events?

ArgumentException when using split panes

Hello, since I am using the extension, I sporadically get the following error multiple times spammed:

System.ArgumentException: The specified ITextSnapshot doesn't belong to the correct TextBuffer
at Microsoft.VisualStudio.Text.Implementation.TrackingSpan.GetSpan(ITextSnapshot snapshot)   
at Microsoft.VisualStudio.Text.Implementation.TrackingSpan.GetStartPoint(ITextSnapshot snapshot)   
at SeeUsingsLater.SeeUsingsLaterTextViewCreationListener.Match(ICollapsible collapsible) in C:\Users\nate\Source\Repos\natehitze\SeeUsingsLater\SeeUsingsLater\SeeUsingsLaterTextViewCreationListener.cs:line 55   
at Microsoft.VisualStudio.Text.Outlining.OutliningManager.InternalCollapseAll(SnapshotSpan span, Predicate`1 match, Nullable`1 cancel)   
at Microsoft.VisualStudio.Text.Outlining.OutliningManager.CollapseAll(SnapshotSpan span, Predicate`1 match)  
at SeeUsingsLater.SeeUsingsLaterTextViewCreationListener.OnRegionsChanged(Object sender, RegionsChangedEventArgs regionsChangedEventArgs) in C:\Users\nate\Source\Repos\natehitze\SeeUsingsLater\SeeUsingsLater\SeeUsingsLaterTextViewCreationListener.cs:line 48   
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)   
at Microsoft.VisualStudio.Text.Outlining.OutliningManager.UpdateAfterChange(NormalizedSnapshotSpanCollection changedSpans)   
at Microsoft.VisualStudio.Text.Outlining.OutliningManager.SourceTextChanged(Object sender, TextContentChangedEventArgs e)  
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args) 
--- End of stack trace from previous location where exception was thrown ---   
at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)

Steps to reproduce
• Open Visual Studio
• Open a solution with one or multiple projects
• Open a file to the left and a file to the right (split-screen)
• Close Visual Studio
• Re-open Visual Studio
• Observe the error

Note that the error occurs mostly when using multiple code panes without having to restart Visual Studio.


This bug does not affect productivity for me (except that warning burning in the eyes), but I'm leaving this issue for information here.

I really appreciate any help you can provide.


Visual Studio Information:
Microsoft Visual Studio Community 2019 Preview
Version 16.9.0 Preview 1.0
VisualStudio.16.Preview/16.9.0-pre.1.0+30709.64
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Community

Support VS 15 Pre

I fixed the .manifest manually and was able to install the extension. But it doesn't work.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.