Visual Studio - Shortcut to Navigate to Solution Explorer

前端 未结 12 1639
独厮守ぢ
独厮守ぢ 2020-12-22 17:58

Is there a keyboard shortcut in Visual Studio (aside from CTRL+TAB and selection) that would take me from inside a document directly into the solution

相关标签:
12条回答
  • 2020-12-22 18:10

    When using VS 2012 with the Visual C# 2005 keyboard mapping scheme:

    CTRL+W, S

    I find this easier to memorize: All shortcuts beginning with CTRL+W are for opening or navigating to W indows:

    • CTRL+W, S: S olution Explorer
    • CTRL+W, E: E rror list
    • CTRL+W, R: R esourceview
    • CTRL+W, A: Command window (A ction ...)
    • CTRL+W, T: T askview
    • CTRL+W, Q: Find Symbol Results
    • CTRL+W, X: Toolbo x
    • CTRL+W, C: C lassview
    • CTRL+W, P: P roperties
    • CTRL+W, B: B ookmarks
    • ...
    0 讨论(0)
  • 2020-12-22 18:12

    In Visual Studio 2012 you can now use CTRL+; as this is the default keyboard shortcut for the solution explorer search box.

    0 讨论(0)
  • 2020-12-22 18:12

    Visual Studio

    2015 and 2017 (by default) VS 2017 Shortcuts

    Ctrl + [, S

    Runs Keyboard Shortcut

    SolutionExplorer.SyncWithActiveDocument
    

    ReSharper

    In Visual Studio 2015 and 2017 (by default) Resharper Docs

    Shift + Alt + L

    Which runs Resharper's Keyboard Shortcut

    Resharper.Resharper_LocateInSolutionOrAssemblyExplorer
    

    Both

    • Focus Solution Explorer
    • Highlight document
    • Scroll / expand nodes (as required to show that document)

    Difference

    Resharper's version also works with decompiled code. Locating decompiled symbols in the Assembly Explorer window.

    To customise / it doesn't work :

    1. Tools > Options > Environment > Keyboard
    2. Search shortcut name (e.g. SolutionExplorer.SyncWithActiveDocument)
    3. Assign (in Global) to Keyboard shortcuts as you like
    0 讨论(0)
  • 2020-12-22 18:13

    CTRL+ALT+L

    should shift focus to the Solution Explorer.

    For visual studio 2012 use:

    CTRL+[ + S this selects your current document in the solution explorer.

    0 讨论(0)
  • 2020-12-22 18:14

    Extended above : command name for sync tab with solution explorer is "SolutionExplorer.SyncWithActiveDocument"

    0 讨论(0)
  • 2020-12-22 18:19
    1. shortcut ctrl [, S will focus current open file/document in solution explorer.
    2. setting checkbox to true in "Track active in Solution Explorer" will automatically focus current open file/document in solution explorer (Tools->Options->Projects and solutions->General->"Track Active Item in Solution Explorer"=true
    0 讨论(0)
提交回复
热议问题