How to search specific filename in Visual Studio Code? - search

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.

Related

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"

How to open Sublime Text files in window based on extension?

Is there any way to get Sublime to open all files of a certain extension in the same window? For example, when using a 2x2 grid, I'd like to keep all SCSS files in the upper left, all HAML in upper right, JS lower left and search in lower right. I'd like to use the search function, and have files go to the other three tabs instead of the search window each time.
I've tried the 'open in relevant window' plugin and it doesn't appear to make any difference.
When opening lots of files it gets very tedious opening them and having to manually move them to a window that wasn't active when opening.
Edit: I'm working on a Mac, so I'd need something that works there, or preferably cross platform.
Edit: Op is working on a Mac, I'll leave this in case any windows users are interested in this solution.
---
Perhaps an extra shell extension would help.
If you're familiar with the Registry, you can create a new key that opens all selected files in a new window. Simply create a modified version of what Sublime Text already has.
The existing key for Sublime Text exists here:
HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command
With the default value of (depending on version):
C:\Program Files\Sublime Text 3\sublime_text.exe "%1"
You could create a new key like so:
HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text (new window)\command
Then add the -n arguement to the default value:
C:\Program Files\Sublime Text 3\sublime_text.exe -n "%1"
This will create a new window every time you use the shell extension to open files and will keep multiple files organized in the same window.
To take this a step further, if you have any programming experience you could create your own shell extension which takes a list of files and groups them for you, which then in turn can create the new windows programmatically.

Sublime Text 3 Project

I am trying to use sublime for editing and making rainmeter skins, I have installed a plugin that recognizes rainmeter code nice.
In my code I have an #include=\somelocation...
at that location the file has things like colour=something
In the actual file being loaded fontColor=#colour#
How do I get it so that if I change the name of colour inside the location file it would update everywhere else?
You can use the Find in Files... functionality, located in the Find menu. In the Find: box, enter what you'd like to look for (the buttons to the left allow you to search by regex, respect capitalization, and other options - just mouse over for a description). In the Where: box, enter where you'd like to search. If nothing is entered, the search will run in all open files and folders. Click on the ... button for some extra options. Finally, enter what you'd like to replace the found values with (if anything, you can also use this dialog to simply search files).
Clicking Find will first perform the search for you, so you can verify its results. Clicking Replace will do all the replacements.

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.

Faster search for files in Netbeans

Is there an existing plugin or tweak that speeds up the "Go To File" search in Netbeans ? Compared to Eclipse, Netbeans search is way too slow specially if one has multiple large size projects.
I know I can use CTRL+O for "Go To Type" but often I need to search for other file types like XMLs, property files etc. across thousands of files in multiple projects.
I installed the Quick Search plugin but even that doesn't search for non Java file types.
You can focus on the Project Tree and simply type the file name which you want to looking for. Press Up/Down to select if more than one file match your search.
Or use keyboard shortcut to open the search file form:
Windows/Linux:
Alt+Shift+O
Mac OS:
Control+Shift+O
The best way to search and open file in netbeans -
Press CTRL+O and type file name you are looking for, it will search in current projects and list matching files
why not right click on the project and click 'find'?
I can only recommend using the Open File Fast plugin
http://plugins.netbeans.org/plugin/16495/open-file-fast
How to quickly find a file/files in netbeans. Maybe for someone it will be helpful.
In Netbeans projects files view select some directory where you want to look for the file.
Click ctrl+f to show the finder dialog
Pass your file name into 'file name patterns' input
In options set only 'Regular expression'
The 'Containing text' input has to be empty
For Mac users
control+shift+O
http://plugins.netbeans.org/plugin/16495/open-file-fast
Find file fast will your solution for find file faster just like sublime..
using the shortcut alt+shift+o
hope it will help
You can install the recent file list plugin
This plugin is not as powerful as the intellij but to simulate the same behavior (open the recent files with ctrl+E):
After install the plugin assign the Ctrl+E shortcut to the "Recent Files" action: Tools->Options->Keymap->Search "Recent Files" and assign Ctrl+E shortcut
If all you need is to search by file name/pattern, then I suggest plugin "Quick File Search" http://plugins.netbeans.org/plugin/70267
Press Ctrl + Shift + H.
On the screen appear option scope. Click on this text-box and choose the project you want to find needed text snippets, or you can find all of the projects. I am using Netbeans 8.1 Best regard !

Resources