PHPStorm Find and Replace in All Files Except One - phpstorm

Sometimes when I do a find and replace for a string in my project, I'd like it to be committed to all directories / files except one. Is there a way to exclude a particular file in the GUI screen that appears before you commence your search?

This link might help you.
No need to upvote or accept my answer if it works for you :)
Exclude folder from search but not from the project list
Or this, using scopes: How to exclude files/folders from code inspection in PHPStorm?

Related

Visual Studio Code - Compare two csv and find data that not in the two files

So, I have two csv files that I need to compare. However, I am not sure if I am using compare active file in Visual Code will help me.
File 1.csv --> the starting point
id,name
12a,mark
134,jon
151,pete
z18,sab
329,lin
m32,sam
kla,kop
l5h,ming
File 2.csv --> modified one, basically made some changes (delete two id)
id,name
12a,mark
134,jon
151,pete
l5h,ming
kla,kop
329,lin
So, I want to use visual code to compare between these two files and find out which line from the 1.csv that already been removed. If I use compare active file in visual code, it only gave me which line that different from the original one. But I cannot find between the original file (1.csv) and the modified one (2.csv), which data/id has been removed.
I am not sure whether visual code can do this or what keyword that I need to use in google to find this solution. So I am wondering if anyone could help me with this.
Ps
The real files that I need to deal with in the same situation have more than a thousand id.
Sorry if this has been resolved or asked somewhere in StackOverflow, English is not my native and I don't know what keyword that I should use in StackOverflow for this.
Thanks!
If you multi-select (Ctrl+Left-Click on Windows) both files (file1.csv, file2.csv) in the VS Code (File) Explorer window, then select Compare Selected from the right-click menu in the (File)Explorer window, a diff window will open with the comparison you desire.
Note the first-selected file will appear on the left pane of the diff window.

Files not under caret on new computer

I opened my project on another computer, and the files where I'd been using a file watcher were expanded, like before they used to be nested like home.scss is now after I run the watcher once on that file.
Is there a way to automatically make all the files be nested?
Because when adding new files and folder with git, it would be quite troublesome to go into each and every file in order to make them become nested.
Like I have some minified JavaScript files that used to be nested, but now is expanded for some reason.
Hope you understand. Thank you.
Edit: Nested***
Is there a way to automatically make all the files go under a caret like that?
Unfortunately not. Such nesting information (to "go under a caret" as you are saying) is taken from "Output path to refresh" field of the corresponding File Watcher.
You have to run file watcher for such files at least once in order to see files nested like you have it on your another computer.
Here is how you can run File Watchers manually without the need to modify those files (so no extra history will appear in your git (or whatever VCS you may be using there)).
https://stackoverflow.com/a/20012655/783119
P.S.
In PhpStorm 2016.3 (the next version that will be released in 1.5-2 months or so) such nesting will be done automatically (the most common combinations) so there will be no need to have File Watchers for providing such info.
If you wish -- you can try EAP build right now (EAP means Early Access Program .. which is sort of Alpha/Beta builds (simply speaking).. and therefore some bugs for new functionality might be present and performance may not be optimal).

generating two files by using workflows in Teamsite

I need your help/suggestion in teamsite(V6.7) coding for generating two files by using workflows means "How to generate a page at two different locations (in same branch) by using two different tpl files(desktop.tpl and mobile.tpl) but same DCR(abc.xml)"
I also guessed the idea/scenario that if any Perl script can be added in existing Workflow and while submitting the desktop file by using workflow to desktop location (/servername/default/main/sitefoldername/desktopsite/) then this workflow will also generate the same named file in mobile location(servername/default/main/sitefoldername/mobilesite/mobilepages/)
Please let me know if this kind of script can be developed
It would be a great help for me if you can provide your best solution into this.
Update the {iw-home}/local/config/templating.cfg to include the multiple presentations, one for each of your tpl file. You can use formAPI to set the location of the generated files.
Regards!
Yes, you can definitely generate two pages at a time.
You need to update the "templating.cfg" file and add all the different .tpl file names that you want to use but after doing this just try to generate some files using UI to cross check whether you are able to get the options for tpl selections if yes then you can proceed with the coding stuff. Also, you can refer some of these files: iwgen.ipl, iwpt_compile.ipl, iwtmplconfig.ipl and iwregen.ipl.
Please mark the solution and vote if it is useful.
Thanks!

PHPStorm exclude vendor from search but keep Intellisense

Any idea how can I exclude the vendor directory from Search in files and folders but keep it in indexing for Intellisense purposes?
I need to search only in my Symfony files, not the framework and so on.
Tried Scopes in Settings, with this pattern:
!file[abuse]:vendor//*
Thank you!
I tried using scopes but it didn't seem to work for me. The vendor files still turned up when trying to open files (ctrl + shift + n) and in order to use the scope I had to manually select it from the find in all files dialog.
I better solution I found was using the composer settings in PhpStom as shown in this question.
Just add your composer.json and composer.phar into the composer settings and it does the rest for you!
Scopes functionality is the way to go here.
You just need to ensure that you have inclusive parts as well and not exclude rules only. The solution is to include everything recursively and only then exclude unwanted stuff.
The reason for that -- ATM search does not correctly process scopes that have exclude rules only.

Exclude some folders from module declaration suggestions in PhpStorm

When I try to click on some function in PhpStorm with a CRTL button the system tries to bring me to a definition of this function. Sometimes there are multiple definitions and the annoying page shows up telling to chose to which definition you want to go. Like here:
Because I am using grunt and minifing / concatenating results, the definitions is in multiple places. I know that I should ignore everything in node_modules, but the system does not. Is there a way for me to exclude some of the folders?
If you don't need any completion/navigation/etc. from your local node_modules, you can exclude this folder from your project:
right-click, Mark directory as/Excluded
You will still be able to run Grunt, but files in these folders won't be indexed and thus suggested for completion/navigation