I recently noticed that when I select a word and press CTRL+F3 in VS2008, it searches for that word in the whole solution, and the following appears at the status bar: Find "XXXX", Match case, Entire solution.
When I do the same thing in VS2010, I get to search only in the current document, not the complete solution. I want the same behavior in VS2008, and in fact, I thought, that is the default behavior in VS2008 as well. May be I did something ... anyone knows how can I get back the behavior of searching only in the current document using CTRL+F3 in VS2008?
Ctrl+F3 uses the last-used settings from the search dialog. If you open that up (using Ctrl+F) and change the "Look in" option to "Current Document", it will then search just within the current document next time you do Ctrl+F3.
Related
In JetBrains IDE's - in particular AppCode or Intellij - there is a Find Anything command that is Command-Shift-A that allows searching for any IDE related Action in a convenient modal dialog. Is there an equivalent in the Xcode?
An example use-case: there are SOF answers mentioning Solution -> Open Target. I can not find either Solution or Open Target in the Menus. I even employed the CheatSheet application and pored over every available shortcut. If there were a Find Anything then I could put in the terms Solution and/or Open Target and a list of related Xcode/IDE actions would be presented.
Pressing command+shift+f will jump you to the “Find navigator” where you can search through your current project. This is great if you want to do free-form searches anywhere in your project and includes options for case sensitivity, context (e.g. search for anywhere for text or just expressions beginning with the search term), regular expression searches, etc. See Find and replace content in a project.
The command+shift+o (the letter “o”, not the number zero) will pull up the “Open Quickly...” search dialog where you can search for symbols in both your project as well as the frameworks. See Open a file containing a symbol.
The Xcode replacement for Android Studio's/Jetbrains "Find Anything" command (which is not the Quick Open) is:
command + shift + ?
This opens the Help menu ready to type into the Find Anything search, where you can search for Xcode's own commands, for example Reveal:
this should be a nice, easy fix for someone.
I want to search for let's say "url" but I only want to search *.cs files because I don't want the search tool to return all the HTML instances of "url"
I'm sure I was able to do this in previous versions of Visual Studio
Yes, it was indeed a nice easy fix...
Whereas:
Ctrl-F (find) the scope was automatically set to "document".
When you pressed Ctrl-Shift-F, the scope was set to entire solution.
Now - Ctrl-Shift-F brings up "Find in Files" which is what I wanted.
Prior to Visual Studio 2005, the bookmark feature worked perfectly. Then starting with VS 2005, I noticed that requesting the "next" or "previous" bookmark stopped working correctly. Sure it will take you to a different bookmark, but it takes you to a bookmark location that is the least relevant or most obscure based on your current location. Even when I'm sitting on a book mark, and I can "see" the next (and previous) book mark, Visual Studio will still take me to some random far-off bookmark (in an entirely seperate project and file if it can help it).
In fact, the only way I can truly get to the "next" bookmark in my document, is to ensure there are not more than two bookmarks in the entire solution (and both must be located in the current document).
I'm trying to understand how this went so wrong, and if there is some simple configuration setting I can make that will correct the problem. I'm now using Visual Studio 2008 (which has the same problem). I've not tried this in 2010 yet.
Update:
I've discovered that the order which bookmarks are traversed, are the order they are created in. There is a "bookmarks view" where that order can be manually re-arranged. However, in the past the order was always ascending line-number, which was much more useful. So now the question is, how do I modify the behavior?
I think starting with 2005 the CTRL-K+CTRL-N and CTRL-K+CTRL-P shortcuts were changed from "move the caret to the next bookmark in the current document" to "move the caret to the next bookmark".
You can get the old behaviour back by editing the keyboard shortcuts to assign CTRL-K+CTRL-N and CTRL-K+CTRL-P like so:
Xcode search just isn't working the way I expect it to. What am I doing wrong?
"Project Find" (cmd-shift-F) often turns up zero results when I KNOW that there are valid hits. For example, searching for "Search Results" (no quotes) ironically returns 0 hits, even though I have a .m project file open with the string #"Search Results" sitting right in front of me. My Find Options are set as loosely as i can make then, case-insensitive, Search In Open Projects, All Candidate Files, All Files in this Project, etc.
The Search bar in the upper right of my main project window doesn't seem to behave like Project Find, nor does it seem to search the currently open document. What does it do?
Searching for "UIView" in the Help menu search turns up zero hits, even though if I open up the Developer Documentation from the Help menu and search from that window it returns plenty of hits.
Help menu searches only for menu entries (try searching for "Paste") and end-user documentation (how to use the software itself, not how to develop it).
Use documentation viewer to search within developer documentation (it lets you switch between fulltext and API names search, select OS version and language).
Check what options you've set in project search – it might be set to match whole identifiers only, be case-sensitive, search only selected files, etc.
Select:
In Project
Textual
Contains
Ignore case
Uncheck:
Display Resutlts in Find Smart Group
This might help :
If you are searching files in project then select "Ignoring case". Below is screenshot for the same.
If you are searching a particular file then select magnifier -> Edit finding option.. -> Select/Unselect Matching case accordingly. Below is screenshot for the same.
In my case the Pods project had an issue and Xcode could open it. Thus, although the files were there, Xcode could search through them.
Is there a plug-in (or built-in feature) for Visual Studio 2008 to be able to do a quick in-line find in your code?
I am unhappy with the find feature (Ctrl+F). I don't like how it pops up in its own window. I think it would be much better if it was more like the Firefox find. (Try Ctrl+F in Firefox). I like how you start typing and it instantly tries to match what you're typing. Often you don't have to type your full search term before you find what you want.
I am use to FlashDevelop, and think they have good some great search functionality. you can just selected a word in your code and tap F3. It will instantly select the next occurrence of that string.
So is there anything out there with this sort of functionality?
Type Ctrl+I. This is the "inline find" version you want.
Ctrl+F3 will start a search for the word that the caret is in (without displaying the Find dialog). Subsequent presses of F3 will continue the search forward. Shift+Ctrl+F3 will search backwards. The whole word and case sensitive options of the Ctrl+F Find dialog are used during Ctrl+F3.
You already got your answer from 1800 INFORMATION, but I figured you might find this one interesting as well:
Favorite Visual Studio keyboard
shortcuts
A good amount of Visual Studio keyboard goodness.