IntelliJ Shift Shift Shortcut in Visual Studio (Global Search)
Asked Answered
A

6

54

After doing some Java I fell in love with some of IntelliJ's features. Especially the keyboard shortcut SHIFT +SHIFT which lets you jump to any other file.

This is a huge time savesaver. Now that I'm back in VS I really miss that feature when I'm editing code. Is there any way to reproduce this in Visual Studio? Perhaps a plugin of some sort?

Alcorn answered 13/4, 2015 at 19:11 Comment(4)
Try ReSharperCostumier
Im a long time ReSharper user, Is there a hidden feature I dont know about?Alcorn
@Alcorn Did you come up with any solution to your question?Shorthanded
@Shorthanded Yes, this is finally part of latest ReSharper, check out my answer below on how to access it.Alcorn
A
4

A few years later and ReSharper now has this feature in the latest version.

It's called Search Everywhere/Go to Type and is triggered with shortcut CTRL + N

https://www.jetbrains.com/help/resharper/Navigation_and_Search__Go_to_Type.html

Extremely useful feature, saves you lots of time and allows you to jump to other files while editing code. Once you try it, using Solution Explorer feels like a waste of time. I got used to it while using IntelliJ IDEA & Android Studio, glad it's now available in Visual Studio via ReSharper.

enter image description here

Alcorn answered 1/10, 2019 at 0:16 Comment(0)
G
40

It's became possible after the recently VS Code release(1.54.0 or above), you can update keybindings.json with following code:

[
{
    "key": "shift shift",
    "command": "workbench.action.quickOpen"
},
{
    "key": "alt alt",
    "command": "workbench.action.quickOpen"
},
{
    "key": "ctrl ctrl",
    "command": "workbench.action.showCommands"
}
]

Source: https://github.com/microsoft/vscode/issues/5280#issuecomment-767869212

Or install VS Code extension: shift shift

Gratifying answered 5/3, 2021 at 13:18 Comment(4)
The shift shift extension only searches for files but not for strings inside files as pycharm does.Anxious
This is a useful answer for VS Code but the question is referring to Visual StudioUnderpants
Although this answer Is not on the topic (VS), but rather VSCode - I still upvoted it, especially since it pops up as a first result for visual studio code double shiftt. Thank you, kind sirOutrageous
MS did a bad job of naming VS Code. MS often sucks at naming things (.NET).Belch
M
10

No need for ReSharper since Visual Studio 17 has already implemented a similar feature:

CTRL + T

enter image description here

Marjana answered 4/10, 2019 at 9:9 Comment(2)
For Mac users: "CMD + T"Jeniferjeniffer
"Go to All" sadly doesn't search all content--only files, types, members, and symbols. Currently in Visual Studio one has to use Ctrl+Shift+F if searching text/code or Ctrl+T / Ctrl+comma to search "things". I'd love it if there was an extension that did only the search/find functionality of Resharper.Kilgore
S
8

Not exactly the same (doesn't show the last used/opened tabs), but works to jump to a file (might be VS 2013+ only):

CTRL+, then type your search terms, you can use space for different parts of the file name:
con na ex => ControlNameExplorer

I find it easier to use when disabling the Preview Tab (click on the down arrow at the right of the search box to change settings).

More details here.

EDIT
This shortcut is set when installing ReSharper, but you can manually set it to the command Edit.NavigateTo (Tools > Options > Environment > Keyboard).

EDIT for VS2017
The command is now named Edit.GoToAll. Thanks to Matt for pointing it out.

Surrebutter answered 20/1, 2016 at 16:15 Comment(3)
Edit.NavigateTo has changed to Edit.GoToAll (see blog post here). It doesn't seem to allow you to create a shortcut with Shift, Shift, however.Lauro
@Loren I think this is only in VS Code, not in Visual Studio.Surrebutter
"Go to All" sadly doesn't search all content--only files, types, members, and symbols. Currently in Visual Studio one has to use Ctrl+Shift+F if searching text/code or Ctrl+T / Ctrl+comma to search "things". I'd love it if there was an extension that did only the search/find functionality of Resharper.Kilgore
A
4

A few years later and ReSharper now has this feature in the latest version.

It's called Search Everywhere/Go to Type and is triggered with shortcut CTRL + N

https://www.jetbrains.com/help/resharper/Navigation_and_Search__Go_to_Type.html

Extremely useful feature, saves you lots of time and allows you to jump to other files while editing code. Once you try it, using Solution Explorer feels like a waste of time. I got used to it while using IntelliJ IDEA & Android Studio, glad it's now available in Visual Studio via ReSharper.

enter image description here

Alcorn answered 1/10, 2019 at 0:16 Comment(0)
P
1

Visual Studio 2022 version 17.6 or later support Code Search.

enter image description here

the default shortcut is CTRL + T

The key words in keyboard setting named Edit.GoToAll.

The extension KeyBooster allows setting double shift as shortcut.

So just install the extension and setting command as Edit.GoToAll.

Preteritive answered 3/6 at 2:27 Comment(0)
P
-7

Not really sure what SHIFT-SHIFT does, does that mean holding down both SHIFT keys and pressing J?

I find I seldom need to goto a file. I put my cursor on a variable or a function, hit F12 and it goes to wherever it is defined, without me needing to remember it. If I press SHIFT-F12 it gives a list of every where it is referenced, again without needing to remember. If I want to go back to where I was at I press CTRL+- (which works in any context). I am quite comfortable with this navigation, and so like you, every time I try something new the first thing I do is try to find out how they implement what I am already used to.

Polemic answered 13/4, 2015 at 19:22 Comment(1)
Its hitting shift 2x in a row. Great shortcut and time saver.Alcorn

© 2022 - 2024 — McMap. All rights reserved.