I have been using eclipse for a while, now I'm using IntelliJ IDEA. There was a good feature in Eclipse that I would like to use it in IntelliJ. Here is the feature:
This is my variable name: int myVariableName;
when I use this (Ctrl+Backspace) shortcut end of the variable (Cursor is next to letter 'e') name variable becomes -> int myVariable;
so it deletes until capital letter in eclipse. (this is what I want, it deletes separately by capital letters)
The issue in IntelliJ is that it deletes all variable names, so I need to re-write again. Where can I customize this setting?
Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L (Windows/Linux) to reformat a selection of code according to your reformat settings.
To select ranges as multiple rectangular selections, Ctrl+Alt+Shift+Click and drag the mouse over the desired parts of code. As a result, you will have multiple selection ranges in each affected document line.
Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.
Navigate with the caretTo navigate backwards, press Ctrl+Alt+Left . To navigate forward, press Ctrl+Alt+Right . To navigate to the last edited location, press Ctrl+Shift+Backspace . To find the current caret location in the editor, press Ctrl+M .
Ctrl+backspace deletes previous "word".
"word" can be defined as:
camelCaseNotation
The default is option (1). To change to option (2), go to file->settings
, search Smart Keys
, and check Use "CamelHumps" words.
As noted in comments below, this setting will also cause double-clicking to select only part of a camel-case word. To restore double-click to select the whole word, uncheck Editor->General: Honor "CamelHumps" words settings when selecting on double-click.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With