How to use shortcut-key to move cursor in clion? - ide

Using direction key is slow when I'm coding, I want to find a method to use Ctrl+k to move cursor.

This is complete list of shortcuts for Clion
Alt + F9 to Run to cursor

Related

Spyder IDE: Previous and Next Cursor Position shortcuts are not working properly at all

I will often use Ctrl+G to go to a definition of some variable and then use the "previous cursor position" shortcut to go back to where I was after viewing. This is easy to achieve in Eclipse. But in Spyder, the previous cursor position shortcut (I left as the default Ctrl+alt+Left) takes me to seemingly completely random places. It even takes me to files I haven't touched in months! I checked that the shortcut is not being overridden by another command so I'm not sure what the issue is. I am using Spyder 4.0.1.

How to move last cursor using while using VS Code multi cursor

How to configure VS Code to move the last cursor position?
To to be more precise, here is the example of the feature for Atom editor.
https://atom.io/packages/multi-cursor
Please navigate to "Moving the last cursor that has been created" section. Those are the controls that I'm referring to.
Is there any such functionality in VS Code? Or any extension which can enable this?
ALT + Click , now i don't remember on MAC

How can I expand multi-line selection to full lines in PHPStorm?

In Sublime Text I can arbitrarily select a set of lines and then use ⌘+L to expand the selection to the full lines. Is there a similar command in PHPStorm / WebStorm? (I'd like to map that command to a keyboard shortcut.)
I know PHPStorm has the option "Select Line at Caret", but that selects only one line.
Update
Nowadays (welcome 2020) Go to Preferences > Keymap. Change or add the value to
Add Carets to Ends of Selected Lines => CMD+SHIFT+L to have it behave like Sublime Text so it looks like
Old Answer
This is as close as I could get it (before 2020):
Go to Preferences > Keymap. Search for Clone Caret Above/Below.
On a Mac, it looks like this
The keys are:
CMD+SHIFT+CTRL+ARROW_UP for Clone Caret Above
CMD+SHIFT+CTRL+ARROW_DOWN for Clone Caret Below
Click on Apply and it will work
With WebStorm 11 (at least) the multi-caret keyboard shortcut is:
Ctrl then Ctrl+Arrow Up (or click & drag with the middle mouse button/scroll wheel)
then to select the full lines:
Home then Shift+End
which you could even create as a macro with a keyboard shortcut.
I used to accidentally activate the multi-caret all the time (I scroll with Ctrl+Up/Down), so I knew how to do part of it, but it took me ages to figure out that extra Ctrl tap at the beginning.
Hold down Alt + Shift and left click on the lines you want to select. This will put multiple cursors on the editor. Now you can use the Select Line at Caret option you mentioned to select all those lines.
You can find more about multiple selections here.
This is currently not possible with a selection. However, you can still do that from the keyboard. Instead of doing selections set up a shortcut for Clone Caret Above (Alt+Shift+U for me) and Clone Caret Bellow (Alt+Shift+D for me). This allows to go up or down a line and add a caret there. So instead of selecting each line, you directly move the caret there and clone it.
I am also coming from Sublime Text and missing that feature, but this worked also pretty well.

Intellij idea quick defenition

In eclipse when I mouse over a variable I see it quick defenition, when I mouse over with shift pressed, I see full defenition. But in idea, I always need to press some keys to do anything. Is there a way to simplify those tasks in idea?
The quick definition features is accessible with the shortcut ctrl + shift + I.
I don't think it's possible to access to it on a key + the mouse over.
You can edit the idea.properties found in the bin folder of IntelliJ application and add this line:
auto.show.quick.doc=true
The
This will give you the JavaDoc when hovering over a variable:

Deselect selected text in sql server management studio table-design cell w/out using mouse

This is something that has bothered me for years. When I am using SQL Server 2005 Management Studio and I am in the table designer and I'm editing the column definitions It is almost possible to do this entirely without using the mouse. However, if I'm navigating around the cells in this designer using the arrow keys, when I move to a new cell all the text is selected. Say I want to change a decimal(6,2) to decimal(6,3), so I move over there with arrow keys and the whole decimal(6,2) phrase is selected. I have been completely unsuccessful in finding a way to move the cursor to the beginning or end of the line. Instead any combination of ctrl, shift, alt and arrow keys blithely select the adjacent cell in that arrow's direction. So inevitably, I have to take my hands from the keyboard and use the mouse to click within the cell I want to edit and then I can edit the value without having to retype the entire thing.
GRRR!
Can anyone help me out with this one?
I will be eternally grateful (or at least as long as I use Sql server management studio)!
Thanks,
Uh... F2, right? That's always worked for me, in just about any program where you edit a grid
While playing around with #Damien's answer I found out an even better answer that I basically accept as the answer.
If you move to a cell and all the text is selected you can hit the escape key. All the text will still be selected but at this point you can use the navigation keys like arrows and Home and End and they will work as expected.
Okay, this is ugly, but you can do it with 3 keyboard actions: SPACE, CTRL-Z, RIGHT ARROW leaves the cursor at the end of the text, left arrow is then moving the cursor within the text.
But as I said in my comment, I'd just use a query window and write the SQL directly rather than using the table designer.