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.
Related
This question already has answers here:
How do I remove IntelliJ's blank line numbers?
(2 answers)
Closed 10 months ago.
I updated to IntelliJ 2022.1 and it shows gaps before every java annotation (between line 78 and 79) :
It did not do this in the previous version I used (2021.3) and I want to deactivate it, but I can't find anything in the settings. So far I searched for: gap, height, lines, ...
Does anyone know how to deactivate this?
It is a known bug https://youtrack.jetbrains.com/issue/IDEA-291945 .
As a workaround, you can add editor.codeVision.new=false in Help | Edit Custom Properties and restart the IDE.
Disable the inlay hints in settings -> editor -> inlay hints
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).
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.
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)
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
IntelliJ IDEA - caret behavior
Previous versions had 'Allow placement of caret after end of line' in Settings -> Editor -> Virtual Space, but I can't seem to find it in the new version (12).
Edit: it is in the same place... Settings on a Mac is in Command+, as opposed to File -> Settings (on a PC).
IDEA 12 has exactly the same setting: