how do i jump to the next input for intellisense - intellij-idea

I'm using the terraform plugin specifically but this is a more general intellij hotkey question.
I start typing a supported element and autocomplete pops up:
Hit tab and it sets up the method and puts the cursor in the first input and I can start typing and it gives me possible inputs:
But when i hit tab or enter it just completes it and leaves the cursor where it is:
Is there a hotkey to complete one of those options and then also jump to the next input?

There is a ticket for this feature, but its not implemented yet, please vote: https://youtrack.jetbrains.com/issue/IDEABKL-7063

Related

Fold/unfold code section back using Cntrl + Z in Intelij IDEA

When I fold some code blocks (e.g. for(){...} loop or if(){...}) I often need to unfold it back. But my cursor can be far from the original position. I would like to do it using Cntrl+Z hotkey. But it doesn't catches fold/unfold actions.
Is it possible to track folding actions so they can be canceled by Cntrl+Z
No, there is no such feature in Intellij. Folding/Unfolding are not captured as "real" actions.
Unforunately nothing is mention in their official documentation, nor the Settings/Preferences dialog (Ctrl+Alt+S), go to Editor | General | Code Folding provide such feature.
You might be able to get something similar with the code navigation keys:
Ctrl-Alt-Left = go back to previous cursor position
Ctrl-Alt-Right = go to next cursor position
Alternatively, you can use the Back and Forward buttons on your mouse to navigate through your location history.

Focus on dialog with ideavim

I have some handy mappings set up in my ~/.ideavimrc some of which result in IntelliJ opening a new window/dialog box. For example the following line lets me type \t and it'll open IntelliJ's "jump to test" dialog box which lets me jump to an existing test or create a new test file:
:map \t :action GotoTest<CR>
This almost works great. The only issue is that when the dialog box pops up the focus is still on the editor window, not the dialog box. As a result I can't simply use the arrow keys to select my option and hit enter. Instead, I have to use the mouse. As a good code nerd, I abhor the mouse. So, how do I get the keyboard focus to change? Is this possible?
It's fixed in the master branch https://youtrack.jetbrains.com/issue/VIM-796, but the fix hasn't been released yet. You can download a CI build and help testing IdeaVim. See https://github.com/JetBrains/ideavim for more details.

Visual Studio 2013 VB intellisense

Apologies upfront if this is a silly question, but it's annoying me to no end and I can't figure it out.
I'm using Visual Studio 2013 Professional, and I usually code in C# where when using the Intellisense, when I press Enter to select a method or something it adds my selection and I can continue typing on the same line.
But at the moment I'm working on a project which is in VB.NET, and when I use the Intellisense in the same way it puts my cursor in the next line, i.e. I press Enter to select whatever, it adds my selection and starts a new line, so I have to press the Backspace to go back to the previous line. It's so annoying!
Is there a way to change this behaviour so the cursor doesn't go to the next line? I've looked at the settings available in Tools > Options but can't figure it out, and searching Google for anything similar hasn't been successful.
Found it here (paragraph List Members)
You have toggled to suggestion mode instead of completion mode.
You can also change to suggestion mode, in which only the text you type is inserted into the code. For example, if you enter an identifier that is not in the list and press TAB, in completion mode the entry would replace the typed identifier. To toggle between completion mode and suggestion mode, press CTRL+ALT+SPACEBAR or click Edit/IntelliSense/Toggle Completion Mode.
So, either use TAB/SPACEBAR (as I said in the comment) or press CTRL+ALT+SPACEBAR to switch back to completion mode.
EDIT: I've found out that whenever you type Stri (String will show highlighted in the list now) and you press . (dot) it will autocomplete and stay at the same line.
I think your way of doing this in C# isn't possible in Visual Basic.
I had the same problem and discovered that Auto list members was not enabled on my machine. It's under Tools > Options > Text Editor > Basic > General. This gave me the intellisense I was looking for.
Simple thing which can be used when you face this kind of issue is to press
tab key instead of Enter key when the IntelliSense provided me prediction list.

How can I clear the interpreter screen in Dr. Racket IDE?

Just starting into The Little Schemer, and have a very basic Dr. Racket IDE question:
How can I clear the interpreter screen?
How can I set the up arrow to display the previously-typed items (like in Bash) rather than the current behavior of scrolling up the screen?
My searches are coming up blank, possibly because I don't know the technical term for these actions.
Here's how:
Click on the "run" button, as you discovered
Press Esc + p
And this is the relevant page in the documentation.
1 clear interactions window
As you found out, pressing RUN |> starts up a new instance of the selected language, runs everything in the definition window and clears everything you've done in interactions window (repl).
2 get previous entries like in a shell
a) In the Racket IDE you can hold CTRL with arrow keys to get to previously written statements in the interactions window.
b) Racket can be run from terminal too. When in CLI you type racket it starts up the read-eval-print loop with racket loaded and if you enter (require xrepl) as the first statement you have similar to readline capabilities with up-arrow to get previous, CTRL+r to search history and REPL-commands like ,apropos, ,help and so on. It's called eXtended REPL

What is the name of the keyboard shortcut &/or method in an IDE which allows me to jump past automatically generated </endtags>?

This question relates to a prior question which was answered for all practical purposes with a fellow telling me I simply needed to press the "End" key to skip the cursor to the end of the line. But a second respondee told me of other IDE's abilities to this (his words): "In some IDE, pressing the tab key will move your cursor to the next placeholders in the currently auto replaced element, and if there is no more placeholders, brings you past the end of the auto replaced text."
What is this ability called?
I'll show an example very quickly, if you or I were writing some code in Aptana or RubyMine (my two favorite IDE's)...
<table summary="Subject detail view">
<tr>
<th>Name*</th>**
</tr>
</table>
We'd eventually run into the location(*), where the single asterisk is. We would reach this point and be forced to either use our mouse to click past the auto-generated </endtag>, or our keyboard arrows, or, most recently, the "End" key which would skip our cursor to the end of the line.
But can't I just do this with tab like my friend told me? In order to be able to do this I need to know what this keyboard shortcut is called. I need a searchable keyword. Any additional feedback about keyboard/IDE shortcuts etc would also be appreciated.
RubyMine (and IntelliJ IDEA platform it's based on) doesn't have this feature yet. There is an open feature request in the YouTrack issue tracker:
IDEA-74666 Add Eclipse Style Paren/Bracket/Quote Completiton
I have figured out the king of all answers for this question, which is my own.
Create your own macro. It is stupid how easy this is to do (with Komodo Edit, at least).
To do this in Komodo Edit, for example, first set yourself up so your cursor is a position where you need the custom command, whatever that might be.
So, let's say your at the end of an xml tag with your cursor where this ("|") symbol is
<xmltag>blahblah|</xmltag>
Now the < /endtag> has been generated automatically, just to make sure you know that.
Now, go to Tools, Macros, Start Recording. Click it. relax, you can do this as many times as you like...it only records keystrokes, by the way, so do this only with your keyboard. To skip to the end of the tag without the arrow keys, use the 'End' key. And I don't mean to insult your intelligence, but in case you didn't know this, you need to use the End key and not the arrows because future tags could be any length.
OK so do this:
<xmltag>blahblah</xmltag>
|
So you're there. Good, now go to Tools, Macros, and stop the recording.
Next, click on tools, macros, and save the macro.
Then, go to your macro library (same tools submenu) and you should see in the toolbox the file which you named which contains your macro.
Right click it, Properties, Key Bindings tab, then set your custom command in the 'new' form. Apply. OK. You're done.
Test it out, and pat yourself on the back, you just learned something really, really, really useful.
Btw, here's another one I've created.
<!-- | -->
That is a macro command as well. Obviously, you could create an entire form with a simple macro command.