JetBrains IDEs - shortcut to jump out of brackets / jump to the end of an expression [duplicate] - intellij-idea

This question already has answers here:
How to move out of auto-completed brackets in IntelliJ IDEA (without using the arrow keys)?
(10 answers)
Closed 3 years ago.
Consider this code, where | is the cursor
expect("Som|eString")
I'd like to know if there's a keyboard shortcut to jump to here:
expect("SomeString")|
Preferably with a dot added, like this:
expect("SomeString").|
In other words, I feel like a shortcut to jump to the end of an experssion/statement to continue typing it (for example after finishing typing one function's arguments in a function chain) would be very useful, and surely there is one, even if I'm having troubles finding it in the settings.

With Jump outside closing bracket/quote with Tab when typing enabled in Settings | Editor | General | Smart Keys, hitting Tab within brackets moves the caret outside the closing bracket.
Note that this only works on initial typing: during subsequent editing, pressing Tab inside braces will insert the Tab character.

Related

Is there a command in VS code for skipping a match when selecting words individually that match with ctrl+d? [duplicate]

This question already has an answer here:
How do I skip / jump past next string instance selection in VSCode?
(1 answer)
Closed 2 years ago.
I have searched vscode's keyboard shortcuts but I can't seem to find a command.
Once you've started the matching using ctrl+d, you can press ctrl+k, ctrl+d to skip the current match. Use cmd+k, cmd+d on Mac.
Alternatively, to undo the most recent selection and go back one step, use ctrl+u (or cmd+u on Mac).

IntelliJ IDEA - How to remove auto generated hints? [duplicate]

This question already has answers here:
How to disable parameter hints in IntelliJ IDEA?
(2 answers)
Closed 5 years ago.
Am trying out IntelliJ IDEA 2017.1.3 (being an Eclipse user, there's been a lot of great nods to both Jetbrains and IntelliJ IDEA being sophisticated, so I have been fooling around with it all day and actually enjoying some features).
Wrote a simple unit test (which worked) but am noticing inside the editor that its auto-inserting my variable's value with a grey background following a colon ":" afterwards and also inside the assertEquals() method its adding a grey background for the word "expected:".
After placing my mouse cursor and clicking the second button, a dialog came up stating "Disable Hints" and I was able to get rid of them manually, but am wondering how to not have them appear by default.
Attached is a screenshot (a picture speaks a thousand words)! :)
How can I turn this off? Am using the macOS version of IntelliJ IDEA.
You can permanently disable them by go to Preferences.. > Editor > General > Appearance > Show parameter name hints (uncheck to disable)

Intellij: Highlight current block of code

I was wondering if it is possible to highlight the block of code you are working on in Intellij Idea.
There was a similar question here: Is there a way to highlight the currently active code block in Visual Studio 2010? .
So what I mean is that if you have clicked into e.g. a method or a while loop... ,the background of the whole block becomes a bit lighter or whatever.
There's already one such feature, but it's more subtle, in the form of a vertical line inside the left gutter... I can't recall whether it's enabled by default or not, but you can activate it by File -> Settings -> Editor -> General, scroll to the Highlight on Caret Movement section (about half of the page).
I looked around for a while but I have not yet found a way to change its appearance to match your description, although I personally prefer this less intrusive highlight than having all the background changed.
P.S. Not sure this is relevant or useful to you, but there was a plugin I tried a while ago called CodeGlance which offered a scrollable-map of the class:
I don't know when this feature was implemented. As of 2021, if you double click anywhere in the scope ( but not on text ), Intellij selects the current block of code ( text within two curly braces ).

Clicking on an empty line in IntelliJ [duplicate]

This question already has answers here:
IntelliJ IDEA - caret behavior
(4 answers)
Closed 10 years ago.
I just switched from Eclipse to IntelliJ, and I'm liking it so far. The only problem I've had is that if I click in the middle of an empty line and start typing, the text will actually appear on the middle of the line, instead of the correct indentation. Is there any way to fix this so that is works like Eclipse. No matter where I click on an empty line, I want to start typing where I'm "supposed" to.
I'm using IntelliJ IDEA 12, and if I recall correctly I didn't have this problem when I tried 11 (this might be wrong).
Click File -> Settings -> Editor -> Virtual Space and uncheck 'Allow placement of caret after end of line'. This should help.

Alternative key combination for jumping to the end of a line to enter a semicolon

Due to automatic code completion, I regularly find myself in between parentheses, having to get to the end of a line to add the inevitable semicolon.
Then I have to get my right hand up, move it to the right, hit End, and come back to the main part of the keyboard again to enter the semicolon.
I perceive this as disturbing to my flow of typing, especially when writing on a notebook, as then those moves of my hand are very inefficient.
Is there already a key combination for reaching the end of a line, or adding a semicolon, within the main keyboard area? Or is it possible to configure PhpStorm in those regards?
(I'm using PhpStorm, but I added the IntelliJ IDEA tag to this question as I guess they would be similar regarding those basic features.)
More efficiently: invoke Edit | Complete Current Statement (Ctrl+Shift+Enter) to automatically insert semicolon at end of line and start new line.
You can assign any keyboard shortcut to the Move Caret to Line End action in Settings | Keymap.
You need to try touchcursor. I just love it.