Coder Social home page Coder Social logo

closealltabs's Introduction

Clean Solution

Build status

Download this extension from the VS Gallery or get the CI build.


Cleans up the solution for the next time you open it. Closes open documents and collapses folders automatically when a solution is being closed.

See the change log for changes and road map.

Features

When Visual Studio closes or the current solution is being manually closed, this extension will perform clean up.

  • Closes all open documents
  • Collapses nodes in Solution Explorer
  • Activates Solution Explorer
  • Delete bin and obj folders
  • Super fast - you won't even notice it

Close open documents

All open documents will be closed when the solution closes. This makes solution load faster for the next time you open it.

Collapse nodes in Solution Explorer

Projects and solutions can quickly become noisy to look at when folders and nested files are expanded in Solution Explorer.

This extension automatically collapses all expanded nodes except for project nodes.

Before and after

Be default, solution folders are collapsed as well, but that can be changed in the options.

Activates Solution Explorer

Ensures that Solution Explorer is the active tool window when you open a solution.

This is useful if you're tool window layout docks Solution Explorer with other tool windows in the same location.

Focus Solution Explorer

Delete bin and obj folders

This options will delete bin and obj folders from all projects in the solution on close.

Note that if any file under bin and obj is under source control, the folders won't be deleted.

The bin and obj folders are usually safe to delete since they are automatically generated when the solution/project is being build by Visual Studio/MSBuild.

This feature is off by default, but can easily be enabled in the settings.

Settings

Disable the individual features easily from the Tools -> Options dialog.

Options

Contribute

Check out the contribution guidelines if you want to contribute to this project.

For cloning and building this project yourself, make sure to install the Extensibility Tools 2015 extension for Visual Studio which enables some features used by this project.

License

Apache 2.0

closealltabs's People

Contributors

iwhp avatar madskristensen avatar megasware128 avatar n4ppy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

closealltabs's Issues

Support for closing folder

Installed product versions

  • Visual Studio: 2017 Professional
  • This extension: 1.4.20

Description

Opening folders is a new feature in Visual Studio 2017. Tabs should also close when closing a folder.

Steps to recreate

  1. Open folder in Visual Studio 2017
  2. Open some random files from the folder
  3. Close Visual Studio
  4. Reopen Visual Studio

Current behavior

The files are still open.

Expected behavior

The files should be closed.

Clean bin/obj does not clean web sites

Installed product versions

VS2019, extension 1.4.30

Description

My solution contains a classic ASP.NET web site. the clean did its work on class library folders but not on the web site project

Error after upgrading to 1.4.28

Installed product versions

  • Visual Studio: 2017 Professional 15.8.5 on Win7-64
  • This extension: 1.4.28

Description

After upgrading from 1.4.20 to 1.4.28, clicking on Option -> Environment -> Clean Solution throws an error that the extension could not be loaded, and I see the following in the ActivityLog. Uninstalling and reverting back to 1.4.20 resolves the issue.

SetSite failed for package [CleanOnClosePackage]Source: 'CloseAllTabs' Description: Retrieving the COM class factory for component with CLSID {88AC98C7-B38C-404B-BD86-D2A4F2E89DCA} failed due to the following error: 800401f9 Error in the DLL (Exception from HRESULT: 0x800401F9 (CO_E_ERRORINDLL)).
System.Runtime.InteropServices.COMException (0x800401F9): Retrieving the COM class factory for component with CLSID {88AC98C7-B38C-404B-BD86-D2A4F2E89DCA} failed due to the following error: 800401f9 Error in the DLL (Exception from HRESULT: 0x800401F9 (CO_E_ERRORINDLL)).
at CloseAllTabs.CloseOpenDocuments..ctor(IServiceProvider serviceProvider, DTE2 dte, Options options) in C:\projects\closealltabs\src\Commands\CloseOpenDocuments.cs:line 22
at CloseAllTabs.CleanOnClosePackage.d__0.MoveNext() in C:\projects\closealltabs\src\VSPackage.cs:line 27
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass16_0.<b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.d__78.MoveNext()

Steps to recreate

  1. Upgrade from 1.4.20 to 1.4.28
  2. Click on Options -> Environment -> Clean Solution
  3. Observe error

Other extensions installed

Clear MEF Component Cache
Code alignment
Customize Visual Studio Window Title
Disable Solution Explorer's Dynamic Nodes
Dotnet Extensions for Test Explorer
Error Catcher II
Favorite Documents
I Hate #Regions
Match Margin
Microsoft Library Manager
Microsoft Visual Studio Test Platform
Power Commands for Visual Studio
Razor Language Services
Roslyn Expression Evaluators
Roslyn Interactive Components
Roslyn Language Services
Spartez Issue Key Checkins Policy
StopOnFirstBuildError
Structure Visualizer In Map Mode Scrollbar
Trailing Whitespace Visualizer
Visual F# Tools

Exception from HRESULT: 0x80041FEB The tab has been closed.

I just installed CloseAllTabs 1.4.20 (Visual Studio 2015 Professional) and disabled all "Tools > Environment > Clean Solution" settings except "General > Delete bin and obj folders", which is set to "True". Immediately before the solution closes, I'm seeing the following error in the status bar:

HRESULT: 0x80041FEB The tab has been closed.

I'm not 100% sure this is CloseAllTabs' fault, but the exception no longer appears if I uninstall the CloseAllTabs extension. Nor did I ever notice that message until immediately after I installed CloseAllTabs. The good news is that it doesn't appear to be adversely affecting Visual Studio's usability... anyway, I just thought I'd mention it.

VS IDE / option / environment / CLEAN SOLUTION

Installed product versions

  • Visual Studio: 2017
  • This extension: 1.4.28

ErrorS On:

  • On IDE Loading Giving error ; The 'CleanOnClosePackage' package did not load correctly.
  • VS IDE / option / environment / CLEAN SOLUTION : An error occurred loading this property page

Whats may be wrong ?
BR

Clean Solution

Installed product versions

  • Visual Studio: 2019 community
    Just one question : How can I run the clean solution? Because is not automatic.
    May you help me? Thanks

Close all projects on startup

Apart from the current functionality it would be nice if all solution folders and projects were also collapsed upon startup.

Visual Studio 2022 doesn't work

Installed product versions

  • Visual Studio: 2022 Enterprise
  • This extension: 1.4.35

Description

It doesn't delete files that I want.

Steps to recreate

  1. Open project
  2. Enable deleting .vs, bin, obj folders.
  3. Create git repository with default autocreated by Visual Studio .gitignore
  4. Run project
  5. Close Visual Studio

Current behavior

It doesn't delete vs, bin and obj folders.

Expected behavior

It have to delete vs, bin and obj folders

Close All But Pinned Tabs

Mads,

It would be nice if this addin would close all tabs but pinned tabs.

Thanks,
David McCarter

Keep pinned tabs open

Installed product versions

  • Visual Studio: 2015 Professional
  • This extension: 1.2.13

Description

It would be useful in my case if there was an option to keep the tabs which are pinned open and close the tabs which are not pinned.

Steps to recreate

  1. Open 2 tabs
  2. Pin 1 tab
  3. Restart Visual Studio
  4. Both tabs disappear

Current behavior

All tabs disappear and I want my pinned tabs to stay open because they do have priority.

Expected behavior

When I close Visual Studio and reopen it again my pinned tabs should stay open while the other tabs are all closed.

Clean-up not doing it's job

Installed product versions

  • Visual Studio: VS 2017 Enterprise - v15.8.6
  • This extension: 1.4.30

Description

It seems the plug-in isn't doing it's job anymore. Opened files are still open when I close the VS and re-open the solution. Same goes for the expanded folders in the Solution Explorer; they're not collapsed.
Is there a log file or something like that to pinpoint the issue?

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.