Improvment for all editors
When in editor and browsing through code with more lines, each line having variable length, do this:
1) Press down key to move one line down:
a) if line length is shorter than previous line, cursor moves correctly to end of the line
b) if line is longer than previous line, cursor stays on current position
Expected behavior:
Cursor always moves to end of the line
Explanation:
Most common use case for this is when writing code, u want to press enter for newline, but u cannot do so if cursor is in the middle of text. You have to move at the end of the line, which is not good if keyboard does not have End key (only shortcut with special key).
This kind of micromanagement makes me very mad and kills my productivity everytime I have to navigate end of line manually to press enter and type additional code.
Editor is not smart and does not make any prediction, where I want my cursor (caret) to be. Only getting on my nerves, because doing this manual navigation everytime with keyboard shortcut or having to touch mouse for key+mouse combination of navigation is very painful. With such things my mood is getting worse and worse and I solve useless things instead of being productive.
Making it even better:
There should be some shortcut like shift+right key, which does not move caret by one position, but moves it to next parameter or object:
myObject = someMethod(param1, param2, param3)
This would move from param1 to param2 with one key instead of having to press "right key" 8 times, because length of "param1, " is 8.
Same applies for:
json.getString("param1").getAnotherString("param2")
Here it should move caret to next dot notation.
Navigation in text editor is the most annoying thing of today smart IDEs and takes a lot of time and it is easy to make mistake. Then u have to drag scrollbar multiple times, click with mouse multiple times just to get caret position on end of line or to add new method parameter also very painful. And u get more mad over time if this "navigation mistake" happens over time. I did spent a lot of money on Logitech G502 mouse, because I know it's also matter of button and scrollwheel quality, when doing this kind of navigation like every 30 seconds after you write few lines of code in opensource or shared commercial projects, where the code does evolve and there is more changes in existing code than writing new code from the scratch.
Please sign in to leave a comment.
For example current ALT + Arrow keys navigation is totally useless for me.
Left/Right will switch tab, which I do better with mouse, because mostly after switching tab I have to navigate with mouse the scrollbar on the right.
Up/Down will go to next or previous method. Also never ever used this. I use View -> Tool Windows -> Structure, which will display methods and I can easily sort them by alphabet and navigate with mouse. Because with just this keys navigation, u would need to know again how many times to press it to get to desired method in large files.
>Expected behavior:
>Cursor always moves to end of the line
Do you want this even if the cusros was not at the end of the line? E.g. I would not like to have such behavior and it seems not convenient to me. I'd rather use home/end to go to line start/end. I guess there are could be different opinions when some workflow works for one and does not for others. See also e.g. https://youtrack.jetbrains.com/issue/IDEA-134237
>There should be some shortcut like shift+right key, which does not move caret by one position, but moves it to next parameter or object:
>myObject = someMethod(param1, param2, param3)
>This would move from param1 to param2 with one key instead of having to press "right key" 8 times, because length of "param1, " is 8.
It is possible to open parameter info popup (Ctrl+P), then use Tab/Shift+Tab to navigate between parameters. If you want this action to work on method declarations also pease vote and follow the https://youtrack.jetbrains.com/issue/IDEA-185398
>Same applies for:
>json.getString("param1").getAnotherString("param2")
>Here it should move caret to next dot notation.
There is a related request for commas: https://youtrack.jetbrains.com/issue/IDEA-182203 Feel free to comment there on the behavior.
Do you want this even if the cusros was not at the end of the line?
Yes, exactly! This is my requirement. Back in 1998, keyboards were same. Nowadays they are making smaller keyboards with home/end/pgup/pgdown missing or in different place, which totally breaks this workflow. Also laptop keyboard and similar does not contain these keys at all and u have to use special Fn key on other side of keyboard. Therefore I was long time like you, now I feel my editor could save me the extra "End" key press as it is getting uncomfortable.
https://youtrack.jetbrains.com/issue/IDEA-134237 --> Dobre jak cyp --> too bad it is from 2014 and not implemented in all IntelliJ editors!
Imagine what was the first key that got malfunction on laptop keyboard? Yes, arrow key and I don't play games...so Jetbrains should fix this or buy me new keyboard again :-)
Please file a request at https://youtrack.jetbrains.com/issues/IDEA describing your use case.