"Find and Replace" text box holds the cursor - visual-studio-2012

context, Find and Replace "window" in VS2012 (rc)
Anyone know how to either alter the behavior or get back the old find and replace?
When you execute a search in the new "Find and Replace" you can press F3 to cycle through the results (same as old behavior). However, you have to click ESC to put the active cursor location in your code. With the old setup (if you have the search window auto-close) the cursor is already in the code. Pressing down without pressing ESC requests the history of searches dropdown list to open.
Basically, I just want the old search window, it worked perfectly.

Nope, this is the new search box, and the old one basically isn't available anymore. What you can do it file a bug report on the Connect site, but honestly it will probably be ignored because MS has decided that usability is not important for this new version of Visual Studio (in my own humble opinion)
Good luck!
As an alternate, I guess that you could make an extension that repeats the previous behaviour (like I am doing for all of my Macros) but that is kind of in the territory of overkill.

If you hit Ctl-Shift-F or Ctl-Shift-H, you'll open the Find/Replace in files dialog, which is very similar to Visual Studio 2010. Even though it says "find in files", you have the option of searching in selected text and the current document.

Taking the information above, I went into Tools / Options / Environment / Keyboard and switched the Ctrl+F and Ctrl+Shift+F hotkeys around.
I then dragged the "Find and Replace" window to the right and docked it as a tab (along with Solution Explorer, Properties, etc), as I haven't found a way to have it close automatically after starting a search.
I can now place the cursor anywhere in my document, press Ctrl+F, enter my criteria and press F3 to start the search.
Repeated F3's, even after moving the cursor, behaves just like the good-old-times! (but as bobobobo mentions, be prepared to curse if you accidentally start your search with ENTER instead of F3 :()

Related

Code::Blocks Find Window Closing

I was wondering if there is a way to keep the "Find" window open in Codeblocks IDE (I'm using v13.12 if that's relevant). I'm talking about the window that usually opens (in any IDE) when you hit 'cntrl + F'. In Codeblocks it keeps closing everytime I hit 'Find'. I would rather it stay open like in Eclipse, Notepad++, and so forth.
I normally use the "Find in files" function instead of the normal Find function.
When pressing Ctrl+F select the second tab in the window and you will find "Find in Files".
Normally I use the scope "Project files" which limits the search to the project only.
After a search you will be provided with all the results in the bottom log window in the tab "Search results". You can then easily click around on all matches and C::B will jump to the file and location.

Scroll from source keymap / go to file / locate file in project view

I've searched throu lots of articles but not found an answer, some has come up with workarounds but not really answered the question.
I want to locate a file in the project view over the files in Android Studio.
There is in the project view a button named scroll from source, this one does what I want. But I want it as a keyboard shortcut, like the command in Visual Studio many has as shift alt l. The resharper command is locate in solution explorer
There is also an option in the project view to mark always scroll from source.
These options are useful but do not solve my question.
One might think this would do it, but I don't want the project view over the files to scroll up and down all the time. I want a keyboard short cut because that is what feels fastest to me to work with and makes it more comfortable.
It's possible to achieve this by typing Alt + F1 followed by Enter. If you want to change that to one button press then your best bet is to record those commands as a macro.
To do this go to Edit > Macros > Start Macro Recording. Then press Alt + F1 followed by Enter. Then go to Edit > Macros > Stop Macro Recording and give your macro a name when prompted. Now that your macro is saved you can assign a key binding to it. Go into Settings > IDE Settings > Keymap > Macros and there you will find your macro which you can then bind.
It didn't seem to work for me unless it was a single keypress so I bound the macro to F10.

VS2012: Ctrl+F now synchronizes with Ctrl+Shft+F

In Visual Studio 2012, I want different context for Ctrl+F and Ctrl+Shift+F. However, when I enter data in the Ctrl+F dialog (in the upper right corner of the text editor), it synchronizes that information to the dialog shown by Ctrl+Shift+F. I don't want that. I want Ctrl+Shift+F to do a search in the Entire Solution for now and forever. How can I disconnect these dialogs? I'm using Resharper 7.1 and VSCommands11, if that changes things.
(And why does Ctrl+F take three seconds to show the dialog in the upper right corner? It bugs me when I press Ctrl+F and start typing only to find that it changes my source file.)
Open the options-window. (Tools->Options). In the tree on the left side select Environmend->Keyboard. There are two entries relevant for you:
Edit.Find is for the Search-Box at the right upper corner (Ctrl+F)
Edit.FindinFiles is for the SearchDialog (Ctrl+Shift+F)
Maybe any of your VisualStudio-Extension has set these Commands to other commands.
In my studio both searches are separated from each other. If I set Entire Solution in the Ctrl+Shif+F-Dialog, that does not affect the Ctrl+F-Dialog
Please try this: Tools/Options/Environment/Keyboard > click reset button

Visual Studio hot key - switch Find context/location

Is there a hot key to toggle the search context/location in the "Find"/"Find in Files" commands (Ctr+F and Shift+Ctrl+F respectively )? I'm talking about the drop down that asks where to search for example Current Project, Current Document, Entire Solution etc.
"Find" is probably my most used feature since working with markup and CSS very often I can't just F12 to a selector definition or Shift+F12 to Find Usages, a regular text search is really the only option and I want to make this as efficient as possible.
Yes, I can tab to it but this takes 6-tabs and if I do it fast, often get the count wrong and prematurely execute bad searches; so it's not cutting it.
If there isn't a hotkey how can I set one? Ctrl + F3 would work well since F3 is "Find Next"
Thanks
I'm not sure if there is a command in Visual Studio that does what you are looking for.
If there is one, you can set the shortcut key in the Tools\Options menu (Environment\Keyboard).
In the screenshot, I'm searching for all the VS command that contain "find". Perhaps one of these is what you need.
Then move to the Press shortcut keys textbox and choose your desired key binding.

How do I open a new tab when searching in Aptana Studio 3?

Kind of a newbie question.
Sometimes I use the project-wide search feature, and my search results appear listed in the window below, along with the related hierarchy placement.
Let's say I double click a file. It opens. Fine.
However, if I double-click again on another file in the search results window, it will replace the file I just opened. It's impossible for me to open multiple search results, short of manually opening them from the project view.
It wasn't always this way - it worked when I first installed the program, but something changed about three days in and I can't do it anymore.
Thanks!
Go to Preferences > General > Search and uncheck Reuse editors to show matches.

Resources