Visual assist x is able to highlight the find result, It is useful while I am searching for the right result. But after I got the right one, it is useless. Then how could I unhighlight the result?
Press ESC within a source window.
Related
Visual studios 2013 is showing a black flag looking icon in the left gutter of my code. It doesn't seem to have any meaning and there is nothing particularly special about that line of code. The code works fine, I just want to know why this icon is displayed and what it means.
It may be bookmark or it may be the line at which searched text is found. In this screenshot, the black mark at line 55 shows the line in which search text is found(when we search using Ctrl+Shift+F keys) and one at line 58 is bookmark.
Bookmark can be removed by holding holding Ctrl and pressing K twice. There is also option to remove it in VS menu, same icon as on the line.
Bookmarks are put on the code where we want to navigate more frequently. There is icon in VS menu shown with the arrow and bookmark icon to move forward and backward.
It could be a bookmark. See main Visual Studio menu Edit - Bookmarks.
If you are using dark theme this is a white flag. Ctrl+K, Ctrl+K removes the flag.
To elaborate on the answer given by #Imad. The icon at line 55 can be the result of a search (Ctrl+Shift+F, or Ctrl+F). You remove it by either clearing or closing the Find Results pane.
Or it might be an error indicator from the most recent compilation. These appear in the Error List pane. Fix and recompile to remove it.
Line 58 shows a bookmark. Remove it with Ctrl+K, Ctrl+K on the line in question.
When you do a Search in VS using Ctrl+shift+F -> Find all -> click on a result from the find results tab -> you can see the black pin pointing the matching line in the code.
The answer is here - Black dash / line on visual studio 2012 left margin
I'm editing a hugh Javascript file. For better orientation, it would be cool if I could change the style of all function keywords (not changing the style of all other keywords).
Can this be done in VS 2012 with Resharper?
Actually you can do this without ReSharper. Press ctrl+f, type "function", press enter and don't close find window. All occurences of word
"function" will be highlighted and you can continue your editing. When you close find windows, highlighting will be gone.
It's acutally not so hard to write a VS extension that does that or similar things. See templates etc. here: http://msdn.microsoft.com/en-us/library/dd885242.aspx
I'll mark this as the accepted answer as soon as I can.
In Eclipse, i can do this search for a hard coded string, which will tell the count and places where it is occurring.
I couldn't find how to do this in Visual Studio and my google search is not yielding anything on this.
Can someone help?
Thanks.
As of Visual Studio 2015, you now need to do Ctrl + Shift + F to pull up the full Find in Files menu, which will then give you the stats when you search in the current document.
Press ctrl+f. In find window select "find in files" at the top-left instead of Quick find. This will show the find result in a new window and you will get all statistics at the bottom of window.
In Visual Studio 2005, when I press Ctrl+F and start finding a text, particularly in the Current Document, I want to be able to quickly undo all the subsequent jumps when I saw what I was looking for, and simply return the cursor to the place where it was when I pressed Ctrl+F. Now I have to manually scroll to the place, and that's pretty annoying.
Could you please advise?
Never mind, there is Ctrl+minus functionality: it returns your cursor to the previous navigation point. Works after "Go to definition" as well as after "Quick Find".
Hope this helps other poor souls :)
It'll be nice if I could view the meaning of a squiggly line without doing a mouse hover.
Ctrl + K, Ctrl + I - Edit.QuickInfo command.
It's Ctrl-. or Shift-Alt-F10 (View.ShowSmartTag).
I'm surprised that the question hasn't been answered for more than half a year. I've been using C# for a day and already have found it annoying to reach for the mouse every time to add a 'using' statement.
Not exactly the answer, but a helpful shortcut I usually use to go through errors without using the mouse is F8, which cycles through the Error list (errors, warnings, messages)