How do I preserve search results in IntelliJ IDEA - intellij-idea

I searched the web for an answer to this but was not able to find it in official documentation, forum of IntelliJ or stackoverflow:
In IntelliJ: (How) Can I have multiple search results kept open?
I know there is the possibility of "Recent Find Usages" but this always does a new search. With a big code base this takes a lot of time. Or imagine you need to compare search results.
I now found a solution. See my answer...

When opening the global search dialog (ctrl + shift + f) there is a gear-wheel icon in the lower left. There you can choose to "Open in new tab".
This will keep the previous search result window open and just create a new tab for the new search.
This setting is at least active as long as IntelliJ stays open and also appies to all opened windows / instances of IntelliJ.
Found this answer in a discussion about Visual Studio Code feature request: https://github.com/Microsoft/vscode/issues/16488
Thanks to github user jjinux (commented on 9 Mar 2017)

Related

Missing toolbar in IntelliJ

This sounds like a duplicate post but I tried to find answers to this question online and can't seem to find any helpful information...
I opened several downloaded class files that form one project, and can't seem to run the code. There is no toolbar with the run and debug button and the shortcut (^R) is not working. Right-clicking on the files neither gives the option to execute the code.
Looking at your screenshots (especially #2, the one that show the File menu) it seems to me that you are in the Light Edit mode where the whole IDE pretty much is just an editor.
Switch to the full IDE mode (where you open the actual project) and you will have the full functionality.
https://www.jetbrains.com/help/idea/lightedit-mode.html

How to have a single search panel including all searching options in Intellij IDE?

I need to know how to open the search panel that includes all the
different searching options (All, classes, Files ..) like this:
https://www.google.com/search?q=intellij+search+classes&source=lnms&tbm=isch&sa=X&ved=0ahUKEwikhb793urfAhVHyhoKHeiPBDUQ_AUIDygC&biw=1745&bih=860#imgrc=SGrlYMJQfuMQuM:
I can open the filter for each kind of search separately, but not on the same panel. I'm using the community edition and I was wondering if this is a intelliJ Ultimate specific feature.
Thank you for your help
You should be updated to the last version of IntelliJ IDEA and search for one of the options (all (double shift), classes, etc.)

How to list all suggested quick actions

Is there a way to list all the suggested Quick Actions for an open project in VS2017 (v15.3.3)?
I do not see any listed in the Error List window (even with "Build + IntelliSense" selected), though I do see other types of IntelliSense warnings such as CS warnings (e.g. CS1591).
(Quick Actions being the items that are marked in the gutter with a light bulb and accessed with either Alt +Enter or Ctrl+.)
Thanks to a response from the #VisualStudio twitter account, I've come across this MS Docs page that answers this question: https://learn.microsoft.com/en-us/visualstudio/ide/code-styles-and-quick-actions?utm_source=t.co&utm_medium=referral
It describes how to set code style preferences by opening the Tools > Options window and selecting Text Editor > C# / Basic > Code Style > General.
Here there are a list of the code style preferences. To see where they are suggested in one's own code the severity of each can be changed, say from "None" to "Suggestion" or "Warning". Then, during a build, the locations for the related style will be listed in the Build Output or Errors windows
This isn't exactly the same as what you're looking for, but could help you make changes much more quickly to the entire document, project, or solution:
When you try to apply a quick action (using Ctrl + .), you'll get a preview of the changes it will make. At the bottom of that preview is a button that says
"Apply to all occurrences in ..."
This will save you from having to go to every single occurrence in a certain scope and fixing it, which is what I've done for a couple of hours now :(

Find results get removed in intellij?

ok I search for say
eval() in a php project to find leaks.
I get 60 hits. I look at the first result and want to see if this is maybe a security leak. I see eval() gets called like this eval($mySpecialVar) I then search for $mySpecialVar I see it is not security problem. Now I want to check the next entry of the eval() search result... but it is not there any more. I have now to search again for eval() from the very very beginning, and figure out where I was with the 60 results....?!?
is there no more clever way to do it?
EDIT
the open in new tab is grayed out for me
You have to check "Open in new tab" setting. Its location depends on what search you're using - if it is a text find, the setting is under Result Options section:
If you're searching for usages, it is in Edit > Find > Find Usages Settings:
Note that this option is enabled only if you already have some search results displayed. So in your case: you first search for eval(), then before searching for $mySpecialVar you're clicking on "Open in new tab".
Yet another option would be after searching for eval() to pin the search results, so the new search will always be opened in a new tab:

How to see live list of syntax errors in WebStorm 7 (or IntelliJ)?

While editing a JavaScript file, the IDE shows highlights on the lines that have problems and displays the lightbulb when you're on one of those lines.
How can I see a live list of all problems found in the current file (e.g. syntax errors)?
The only way I found so far was to manually run inspection and check the inspection window. That's quite cumbersome. Even the "Problems" section of the Project window updates itself automatically as soon as I change the code (even without saving) - but it doesn't display the actual errors (only which files have errors).
Apparently the IDE knows what errors exist in the file - I just can't find a way to see all of them in a list.
In every other IDE I know, it is a built-in, enabled-by-default, feature: eclipse, visual studio, brackets, etc.
Apparently this is an open issue on the IntelliJ family of products. Please upvote that issue if you feel it is missing as well!