Sublime Text style ctrl-P Equivalent in Visual Studio 2010? - visual-studio-2010

In Sublime Text et al, you can type Control-P to do an incremental file search.
In Visual Studio 2010:
Control-i does incremental text search
Control-, does incremental symbol search
Control-Shift-f, does Find All Files
What I would like is an incremental version of Control-Shift-F.
Does such a thing exist?

Visual studio 2017 comes with this feature (called Edit.GoToAll). The default mapping is Ctrl + T or Ctrl + ,.
To change it click Tools -> Options and then under Environment/Keyboard search for GoToAll and assign Ctrl + P:
Source: https://learn.microsoft.com/en-us/visualstudio/ide/whats-new-in-visual-studio#experience-improved-navigation-controls

Found these two:
Resharper:
Similar to Go to Type, Go to File (Ctrl+Shift+N) navigates you to any file within your solution. All the same search techniques and wildcards are supported.
VsFileNav

More than a year is passed, so if you switched to VS 2012 I recommed this: http://visualstudiogallery.msdn.microsoft.com/5437f2e7-adef-44e2-b841-78be850e763e

Related

How to replicate SublimeText ctrl+D in Visual Studio

I am used to work with Sublime text and trying to switch for Visual Studio for bigger projects, one of the feature of sublime that I absolutely love is its multiple select feature. You can hit ctrl + d multiple times to select next instance of the same word and then rewrite them all at once. Is there anything like this in Visual studio? I tryed to find it, but with no success.
Btw I am using Visual Studio 2015.
Visual studio 2017-19
The default shortcut is Alt+Shift+.
But if you want to add Ctrl+D
Go to the menu Tools > Options then select the Keyboard tab on the left
At the top you'll find an option to add extra keybindings, select Visual Studio Code. Save and That's it!
This works because Visual Studio Code has Ctrl+D, and other shortcuts similar to SublimeText
Alternatively you can manually add shortcuts
In the image, you can find any command to customize in the middle section.
The particular command you are interested is the one selected Edit.InsertNextMatchingCaret
Ctr R, R, this is used to replace the name of the varibals, depronto can serve it.
and you are encouraged here are all the shortcuts of vs2015 http://visualstudioshortcuts.com/2015/
Goto Tools / Options / Keyboard
Search for duplicate
Choose Edit.Duplicate
Remove the assignement for the current shortcut
Assign the shortcut you want
Ctrl + Shift + L seems to work.
Use Alt +leftClick and ctrl+F2 . For more reference you can go Official Website [link]https://code.visualstudio.com/docs/getstarted/keybindings#_keyboard-shortcuts-reference
I decided to use this Visual Studio Extension:
https://marketplace.visualstudio.com/items?itemName=JustinClareburtMSFT.SublimeVS

Visual Studio addin; to highlight all words which match selected word?

While using NotePad++, and select a certain word, it automatically highlights all matched words?
Does anyone know if there is a Visual Studio addin that can do this? or are there any hidden environment setting that can do this?
Check following addins
Productivity Power Tools addin
The background colour of the highlight in Productivity Power Tools is found under Tools->Options->Productivity Power Tools->Enhanced Scroll Bar->Words Matching The Caret Location Color In The Editor.
or
Use Highlight selected word addin.
I believe Visual Assist can do that. This can be switched on in Settings -> Refactoring -> Automatically highlight references to symbol under cursor.
This is something that is automatically done by VS 2010 though if you are using an older version of VS you can get that functionality with third-party addins. For example I used to use an add-in called RockScroll that could highlight usages in a source file (By double clicking on the word) http://www.hanselman.com/blog/IntroducingRockScroll.aspx.
Also ReSharper has that functionality built into it with Cntl + Shft + F7

Is there a way to quickly find files in Visual Studio 2010?

Does Visual Studio 2010 have a built-in way to quickly find/open files, similar to the Ctrl+Shift+O function in Eclipse?
Or does ReSharper offer this functionality?
Ctrl+,
I'm surprised no one gave the right answer:
Navigate To can show you a list of open files and lots more.
http://weblogs.asp.net/scottgu/archive/2009/10/21/searching-and-navigating-code-in-vs-2010-vs-2010-and-net-4-0-series.aspx
CTRL+COMMA is your friend.
Ctrl + Alt + A opens the command window, type "open" then start typing file names and it will dynamically autocomplete by available solution file name.
I use Ctrl + / to jump to the command bar (same as the search box, but with a > prefixed in the text). I then type "of" (for "open file") and start typing the name of the file to open. Possibly matches are automatically displayed by VS.
I also found that when using ReSharper, the familiar Eclipse shortcut for Open Type (Ctrl + Shift + T) is mapped to ReSharper's GotoFile command.
There is also another way to find files in the Visual Studio 2010 might be useful for someone.
In the command box in visual studio toolbar type ">of " and start typing the file name it will prompt list. Note: This will only find the class not the pages try it for yourself.
this addin will very usefule to quickly open files from visual studio by pressong CTRL + K + O
http://visualstudiogallery.msdn.microsoft.com/en-us/3eb2f230-2728-4d5f-b448-4c0b64154da7
In VS2017 or later versions, we have command called "Edit.GoToAll".
SO can configure it from VS tools.
see below snap.
I have configured my keys for file search as CTRL + SHIFT + T
CTRL+SHIFT+F will bring open a find in files search dialog box. The result will be listed, usually, on the lower section of VS in a Find Files result box. Double clicking a result will open it
DPack has a dialog for finding files in the current solution (search all, or only open files), and it also has a dialog to search the current file for methods,properties, etc. Very nice! Note that the current version only supports VS 2012 or newer, but they have binaries there for older versions of VisualStudio as well:
http://www.usysware.com/dpack/
You could also try Sonic File Finder, which does something similar to CTRL+COMMA:
http://www.jens-schaller.de/sonic-tools/sonicfilefinder/overview/overview.htm
In Eclipse, Ctrl+Shift+O = "Organize Imports"... which I am not sure what this is. But it is not the Ctrl+Shift+F = Find in Files that is in Visual Studio.
VSFileNav - An extension that I created that allow rapid file searching. It's basically got all the ReSharper functionality that was disabled in the express version of VS2010 (I used to really like this).
It's also free :)
For file name search, I use the Visual Studio Productivity Power Tools.
It adds a tab to Solution Explorer called "Solution Navigator". It shows all the solution files in a tree and has a search bar at the top.
To search for text in all your solution files, use Entrian's Source Search:
https://stackoverflow.com/a/9994522/24267
Visual Assist comes with something like this. You will have to pay for the plugin (and I don't think you can use plugins in the express versions).
(If you're doing C++ and you don't plan to buy Visual Assist, be sure to never install the trial. It's that addictive.)
I usually use Ctrl+Q or Everything tool via a hotkey.
For fuzzy search of files (and more) I needed to use cmdp
Unfortunately, VS doesn't offer this search-as-you-type functionality (and lots more).
Type >open filename in the command box in the Visual studio can also open the file
NavigateToAll extends the built-in Navigate To by enabling you to open any file on the disk (not just the ones in the solution).
CTRL + P, the right solution for me....
CTRL + , -> SETTINGS

Configure Eclipse to use VS.Net shortcuts?

I've started doing some Python Programming using Eclipse. However, I'm a .Net programmer and I'm use to the keyboard shortcuts in VS.Net 2008. Is there any quick way to reconfigure VS.Net to use the visual studio shortcuts. I've found this other question, but the suggested methods don't work. I've installed CDT and selected the Visual Studio Keys, but it doesn't seem to change any of the key mappings.
That's strange because after installing the C/C++ Development Tools (CDT):
alt text http://img39.imageshack.us/img39/4002/screenshot001ey.png
And picking up the Microsoft Visual Studio scheme (from Windows > Preferences > General > Keys):
alt text http://img64.imageshack.us/img64/9844/screenshot002r.png
My binding are definitely altered as shown below (ok it's just a small example but it illustrates the change and all bindings mentioned by #VonC are there):
alt text http://img4.imageshack.us/img4/1401/screenshot002gd.png
If the CDT Visual Studio mapping does not work, you need to import custom shortcut files for the usual Visual Studio shortcuts.
This SO question mentions this article, with this minimal set:
New PHP File: Ctrl+N
Next Editor: Ctrl+Tab
Previous Editor: Ctrl+Shift+Tab
Find and Replace: Ctrl+F
Find Next: F3
Find Previous: Shift+F3
Open Search Dialog: Ctrl+H
New File: Ctrl+N
Go to line: Ctrl+G
File.Close: Ctrl+W

Key shortcut (hotkey) in Visual Studio to open a file inside your solution?

Is there a key shortcut in Visual Studio to find & open a file inside your solution without using Resharper or any other tools?
The accepted solution doesn't work on the newer versions.
For Visual Studio 2022, and 2019, 2017 do the following:
Update 1:
Now, pressing Ctrl + Shift + T and typing the file name works!
Update 2:
Since Visual Studio 2019 now it's possible to do a similar search via Ctrl + Q.
But it works slightly sloppy since it shows VS-related stuff as well.
Original answer:
Press these keys to open the "Go to" popup:
Ctrl +
,
Type there:
f Space Filename
Press Enter
Notes:
We are writing f to make VS search only on files. We can
also, use other letters. For more info type ? in the "Go to" popup.
For more keys and for Visual Studio 2012 to 2015 take a look at this
answer.
This answer is outdated; see here for latest information.
Not a single keystroke, but yes: `Ctrl+D > o f filename` (so that's five keystrokes before you start typing the filename). It then autocompletes the filename for you.
You need the Find box in the toolbar for this to work.
(If you change your mind about addins, SonicFileFinder is for this very purpose, and free.)
You can also use Ctrl + /, which puts the > in place for you automatically.
Similar to Just Shadow's answer I discover that, on Visual Studio 2017, you can do the following:
Press Ctrl + 1, then f
Or you could go to Tools -> Options -> Keyboard
and change the shortcut of Edit.GoToFile for whatever you like.
I replaced mine with: Ctrl + O

Resources