Searching for upload finds reload.png - resharper

When I - in Visual studio, Resharper Ultimate - press Ctrl+T, I expected to be able to search for a type.
However, it seems to be the file search dialog.
When I write "upload", one search hit is reload.png.
Can I do any of the following?
Search for types
Disable fuzzy search hits?

Yes, you can search for types, just add a "/":
AFAIK you cannot change the behaviour of Search Everywhere, however, If you need a more specific search you can use ReSharper > Find > Search with Pattern.

Related

Azure Search highlights each search term included as part of phrase search

I have noticed that when performing a phrase search with double quotes, azure Search return appropriate search results but it highlights each individual word in the phrase.
For example when we do phrase search on “data scientist” it highlights “Data” and "Scientist" as well ideally it should have highlighted just “data scientist”.
Is this the default behavior of Azure Search and is there any way to alter it.
Is this the default behavior of Azure Search and is there any way to alter it.
Unfortunately there is no way to customize this behavior at the moment.
In Azure Search we use Lucene's Postings Highlighter. This highlighter ignores positions of terms that matched, that's why you see all phrase terms highlighted independently.
You could refer to the similar SO thread.
If you want to promote this feature to achieve you could go to feedback page and vote for it.

How to search specific filename in Visual Studio Code?

For example, I want to search a file whose name is "module-product.js" to rename it.
But there are lots of files whose names started with "module-".
How to quickly find the specific file in Visual Studio Code?
Ctrl+P and enter details into the popup that you would like to search for! You can prefix the search with # to search for a function.
Others (on a mac) include;
⌘+T Show all Symbols
⌃+G Go to Line...
⌘+P Go to File...
⇧+⌘+O Go to Symbol...
A secret feature of VSCode is the explorer filter.
Cmd-Shift-E (or clicking the sidebar) focusses the explorer. Typing some characters shows only files or directories whose names contain the given characters. Esc clears the search.
As usual, you can use Up- and Down-Arrow to navigate the displayed file list and Cmd-Down to open the currently highlighted file.

How to search all files in project from text editor (IDE)?

Which text editor allows to search all files in the project, without a need they to be opened?
For example: When I'm using Visual Studio and I open project Ctrl+F allows searching into all of the files in the current project. That's for ASP.NET projects.
I want to be able to search in my PHP project. I'm using NotePad++, but when I want to search into all the files, I need to open all of them first, and after entering the phrase to choose Find All in All Opened Documents. But now my project is getting bigger and bigger, and I want to be able to search into all of the files, without need all of them to be opened as a tabs.
Is there such an option in NotePad++? If not, can you recommend me some text editor or IDE that allows this type of searching in normal PHP project(and how that can be done)?
the function is just in front of you:
Notepad++ offers the "Find in Files..." Option in the search menu. (It is just the third tab in the usual search dialog. )
Just enter the correct filter (e.g. *.php or *.*) and use the checkboxes on the right. Most useful is "Follow current doc", which preselects the "Directory" selection. Depending on your project layout you want to enter a constant path there and also check the "In all sub-folders" option.
I really miss the ease of this notepad++ function in eclipse. For me this IS "grep for windows". And you have also replace functionality, so this can be a "sed for windows" replacement, too.
With best regards,
Lars
what operating system are you using?
In most Linux distros you could use the command line with something like this
grep -rnw ./haystack/* -e "needle"

Perform structural search and replace in bulk

In an existing code base, the call to parse dates depends on the machine's culture. I created a custom resharper search/replace pattern that can spot and fix these calls.
Is there a way quickly find and fix all the hits of this search replace pattern? I'm now doing them one by one and it's going to take forever ...
Isn't the 'Global Fix' at the end of that very blog post you link to exactly what you want?
Global Fix What we’ve just done is a manual local fix,
that is, locate the offending entry and hit Alt+Enter to apply a
QuickFix. We can do this at a global scope by using the
Pattern Catalog tool window.
1. Undo the prefix fix (so as to have several instances) 2.
Open up the Patterns Catalog 3. Select the
recently created Pattern and click on Search now.
This time, instead of the Find Results dialog, we get a Replace dialog
which displays all matching patterns and a Replace
button
4. We can select
the entries we want replacing (by default all checked). Click
Replace We’re done! ReSharper will now
replace all occurrences. So we’ve applied a QuickFix
globally.

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