GithubHelp home page GithubHelp logo

darkdaskin / vstabpath Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 3.0 56 KB

Visual Studio extension which shows file paths in tab titles with same file names.

License: MIT License

C# 100.00%
visual-studio-extension visual-studio-2017 visual-studio-2019 visual-studio-2022 visual-studio

vstabpath's Introduction

TabPath extension

Build status

Download: Visual Studio Marketplace

Purpose

Visual Studio extension which shows file paths in tab titles with same file names.

It is inspired by a built-in feature of Visual Studio Code and has similar look and feel, showing relevant path segments next to file names.

Improvement suggestions are welcome.

Compatibility

The extension currently works with Visual Studio 2017 - 2022. Support for other versions might be added in future.

The extension is compatible with the Custom Document Well extension (a component of Productivity Power Tools 2017).

Building

The extension references few assemblies directly from Visual Studio directory, so Visual Studio 2017 has to be installed to build it. No specific work loads are required.

In case you need to build the extension having only newer version of Visual Studio installed, override the MinimumVisualStudioVersion project property (see VisualStudio.props for possible values). This will make the extension incompatible with earlier Visual Studio versions.

vstabpath's People

Contributors

darkdaskin avatar

Stargazers

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

Watchers

 avatar  avatar

vstabpath's Issues

Path not shown when restoring tabs

Hi,

I've encountered small inconvenience. Path is not shown on tabs restored on VS start when Reopen documents on solution load in VS Options > Projects and Solutions > General is enabled. You have to close one of the same-name tabs and open it again so that path is displayed.

Otherwise it works great. Thanks!

Crash probably in F# or Shared project

SetSite failed for package [TabPathPackage]Source: 'mscorlib' Description: The path is not of a legal form. System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at VSTabPath.TabTitleManager..ctor() in C:\projects\vstabpath\VSTabPath\TabTitleManager.cs:line 64
   at VSTabPath.TabTitleManager.<>c.<EnsureTabTitleManager>b__3_0() in C:\projects\vstabpath\VSTabPath\TabTitleManager.cs:line 36
   at VSTabPath.TabTitleManager.EnsurePropertyValue[T,TProperty](T target, DependencyProperty property, Func`1 factory) in C:\projects\vstabpath\VSTabPath\TabTitleManager.cs:line 119
   at VSTabPath.TabTitleManager.EnsureTabTitleManager(ViewGroup target) in C:\projects\vstabpath\VSTabPath\TabTitleManager.cs:line 36
   at VSTabPath.TabPathViewElementFactory.SetupView(DocumentView view) in C:\projects\vstabpath\VSTabPath\TabPathViewElementFactory.cs:line 40
   at VSTabPath.TabPathViewElementFactory.SetupExistingDocuments() in C:\projects\vstabpath\VSTabPath\TabPathViewElementFactory.cs:line 56
   at VSTabPath.TabPathPackage.<InitializeAsync>d__2.MoveNext() in C:\projects\vstabpath\VSTabPath\TabPathPackage.cs:line 69 --- 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__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>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.<JoinAsync>d__68.MoveNext()

Always show file path in tab

Sometimes it's convenient to always have path in the tab. For example when you develop ReactJS components you often use index.js as a root file name in the component folder. And currently if you not open multiple index.js files of different components you don't see the component name in tab title.

So my proposal is to add some options in extension settings for this (like file names template to show path in tabs).

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.