googled this but didn't have success.
I'm using the horizontal split view of IntelliJ (the view that allow us to have files on the upper and bottom part of the screen).
The problem is that whenever I search for a file using the search for a target feature, instead of opening the already opened file which is located on the upper files' list, it opens again on the bottom list but I'd like it to open the one that's already open on the upper list.
Do you know how to change this behavior?
Related
A markdown file is opened under IntelliJ and from its preview if I do a left click on a link, it will follow it and open it the default browser.
But for my current work, it's not what I'm willing to do.
I need to copy its underlying URL to open it on another browser of my choice, that isn't the default one.
But whatever I attempt:
Right-clicking on the link with the mouse
Attempt to copy it by selecting its text and doing Ctrl-C or Ctrl-Ins
the underlying URL of that link isn't copied and I cannot paste it.
Of course, I can enter the .md definition and select that URL part that is between parenthesis, but it's not convenient.
* [COG 2021 : https://www.insee.fr/fr/information/5057840](https://www.insee.fr/fr/information/5057840)
And furthermore, I cannot copy any text content from that preview...
Is there a way to make IntelliJ preview window of a markdown file gaining the expected ability of copying to the clipboard ?
Use markdown editor for this. For example Typora.
When I switch between files (Using ctrl-n for examples) in different editors, intellij always opens the file in the original editor the tab for the file is located. Coming from a vim background this seems counter intuitive for me. Is there a way to force intellij to always open the file in the same editor window?
Please vote for the following related issues:
IDEA-67559 Opening a file when there are multiple file groups may re-open in a different group rather than opening in the current group
IDEA-81628 Navigation within same file mistakenly leaves split editor
When using Ctrl-Shift-N to open the desired file, Shift-Enter to confirm will maintain the focused tab group.
I have some static HTML and want to generate templates out of it. Looking through the HTML tags I often find myself adding the tags I don't want to have in my templates because I went too far down in the hierarchy. Is there a way to kind of isolate the view of a marked code area? Like greying all unmarked code out somehow?
I'm still not 100% sure what you mean by "mark". I'm assuming you mean "select", that is highlight with the cursor, like this:
If that is the case... here is some info.
There is no way to "highlight" the selected portion and work with it, nor a way "dither out" the non selected portion as you go on to work with the desired portion. You could, however, make use of scratch files to work on the desired text. (Scratch files at IntelliJ IDEA help documentation)
With the portion you want to modify selected, if you create a new scratch file (Ctrl+Alt+Shift+Insert / ⇧⇧N or Tools > New Scratch File), the selected portion will be copied into a scratch file:
You could then work in that scratch file, then copy and paste the final result back into the original file (the changes you make in the scratch file are not "linked" to the original file).
Because you have a portion selected when you launch the scratch file, IDEA creates a scratch file of the same type (HTML in this case) as the selected content. (If done without selected text, a popup is shown asking the type of scratch file you want to create.) If you want JSP syntax awareness, in the HTML scratch file, open the context menu (i.e. right click) and select "Change Language" and select JSP from the menu (inline search is available, so you can just start typing JSP).
In IntelliJ IDEA I often split the tabs vertically in order to be able to see multiple files at the same time. This can be useful when the two (or more) files have the same (or similar) structure and I want to compare them (e.g. language files).
My problem is that I'd like to scroll the two splits simultaneously, but can't figure out how (if possible). Is there any setting/plugin for this?
To compare two files in IntelliJ IDEA 14, just select them in the Project view (keep Ctrl pressed for multi-selection) and choose Compare Two File from the context menu. This will open the Differences Viewer. You can also compare a file with the clipboard or the editor contents.
The Difference Viewer scrolls both files simultaneously (there is a button to disable sync'd scrolling) and allows editing both. Differences are highlighted by word, by line, or not at all.
Joined / Wraparound / Continuous Tab Scrolling plugin seems to be what you are looking for.
When I switch between files (Using ctrl-n for examples) in different editors, intellij always opens the file in the original editor the tab for the file is located. Coming from a vim background this seems counter intuitive for me. Is there a way to force intellij to always open the file in the same editor window?
Please vote for the following related issues:
IDEA-67559 Opening a file when there are multiple file groups may re-open in a different group rather than opening in the current group
IDEA-81628 Navigation within same file mistakenly leaves split editor
When using Ctrl-Shift-N to open the desired file, Shift-Enter to confirm will maintain the focused tab group.