Adapt the extend selection in IntelliJ - intellij-idea

Everyone knows that when you select some text in IntelliJ and press Ctrl+w your selection is expanded.
However,
you're kinda stuck on the presets for this:
when you have following code:
<a4j:commandButton execute="#form" render="tableProperties"
value="#{cjr_main.addExtractType}"
action="#{ExtractTypesBean.addExtractType()}"
styleClass="bigButton"
oncomplete="setLineAdded();"/>
and "Line" is selected but the method setLineAdded() is not yet defined you'd want "setLineAdded()" to be selected after hitting ctrl+w a couple of times.
However
Once "setLineAdded" is selected, and you press ctrl + w the whole tag is selected in stead of the accompanying "()"'s...
Is there a way to get this behavior?
(without writing a whole IntelliJ plugin just for this?)
best regards,
S.

No, the behavior of extend selection is controlled by code and is not configurable by users. You can indeed write a plugin to change the behavior.

Related

Vscode "next search result" shortcut does not work

When I use the shortcut associated with "search.action.focusNextSearchResult" in vscode while searching something nothing happens.
This action is initially associated with F4 which is also used for other shortcuts. I thought it may be the problem so I reassigned it to an unused shortcut but it did not help.
I am using the extension "Emacs Friendly Keymap" (don't know if it can cause the problem).
Do you know how I could make it work?
That shortcut, used to go to the next search result, only works in a search editor. It has these context keys:
hasSearchResult || inSearchEditor
Are you using it in a separate search editor? It does work there. Here is one way to open a Search Editor:
If you are using the Find widget then use either of these:
Enter when focus is still in the Find widget or F3 when focus is in the editor.
If you are doing a search across files, then just a downarrow will go to the next result.

How to show all methods quickly in Intellij Idea?

Look at this picture, I should open the Structure window every time in Intellij Idea whenever I want to know methods in the class.
Is there a simple way or shortcut to show methods quicky what like CTRL + O in Eclipse.
Ctrl+F12 should pop up a member list. It will respond to text input to search/filter, too.

How do I change selection properties in Jetbrains IDE(s)?

Several times, while working with Jetbrains' IDE(s), I have faced the following issue:
The natural selection type is changed to this kind of a selection. When I reload the IDE, it gets back to its normal position. Is it a bug, or a feature of the IDE? How do I fix it?
From Jetbrains:
Toggling between line and column selection modes
To toggle between the line and the column selection modes, do one of the following:
On the main menu, choose Edit | Column Selection Mode.
On the context menu of the editor, choose Column Selection Mode.
Press Shift+Alt+Insert.
P.S. My guess would be you by accident used the wrong key combination. (I currently use PHPStorm & C-Lion and have not seen this issue)
Here is the documentation for selecting text in Jetbrains' editors.

IntelliJ-IDEA Eclipse Ctrl+O equivalent that is better than Alt+7

In Eclipse I could hit Ctrl+O and get a popup which I could use to get an overview of everything in the current class, pick an entry, and jump to it.
In idea, there is Alt+7, but I have a few issues with it. First, the keyboard doesn't seem to put its focus there. I have to take my hand off the keyboard and use the mouse to place the focus on the Structure dock.
I also don't like how it's taking up real estate. I don't want to change how things are laid out if I want to see the structure. I would like a more non-invasive popup, and handier and snappier.
Is there another feature that gives me quick access in the form of a popup preferably, like Ctrl+O provides in Eclipse?
Another nice feature would be to be able to use the J and K keys to move up and down the selection, instead of having to use the cursor keys. I'm using IdeaVim, so the normal workflow when editing files, is that both hands stay in a touch-type position. It would be nice if I can use the various navigation features also using vim keys...
Perhaps there is a way to enable this, that I haven't discovered yet?
IntelliJ equivalent of Eclipse's CTRL+O is CTRL+F12 (⌘+F12 on Mac), which will give you more or less the same pop-up as in Eclipse. But I'm not sure if it can be navigated using j and k keys.
More details can be found in the IntelliJ help.

intellij ide shortcut

I was wondering, if anyone know about this kind of shortcut:
lets say I'm searching for something and get a results window with many results, is there a shortcut that can navigate me inside the list without mouse help?
In IntelliJ IDEA 11.0.2
Whenever I do a "Find in Path" using Ctrl+Shift+F and the search completes, the focus is already in the search results and the arrow keys can be used to navigate.
If the focus isn't in the search window, there can be an Alt+# combo that will take you to the window. In my setup, it is Alt+3 (the label on my "Find" tab is "3: Find", so it's easy to see that Alt-3 is the right combo.)
I suspect that I may not understand what you're looking for, but maybe it is helpful.