PhpStorm keyboard multiple keystrokes - phpstorm

Is it possible to create PhpStorm shortcut through double keystrokes? For example by pressing f character twice.

create every arbitrary shortcut is possible via autoHotKey . for my case create a comma.ahk script with the code below:
:*:ff::
send, {end},{enter}
Return
then run the script. that enough to make you free from going to end of line ,press the comma key and at last going to a new line!

Related

Pyautogui: Can I insert text at the current cursor position using a keyboard shortcut?

In Pop!_os 21.10 I created a keyboard shortcut in the settings panel 'ctrl'-'/' to run python3 /home/dg/scuts/p2-pyautogui.py
In /home/dg/scuts/p2-pyautogui.py I used the following:
import pyautogui, time
time.sleep(0.3)
pyautogui.write("el0 n 123. 12345", interval=0.005)
In gedit, I try to run this.
If I press 'ctrl'-'/' and quickly release the ctrl key it works.
If I hold down the control key too long after pressing /, it seems to execute 'ctrl'-'n' and open a new gedit window. Sometimes I get the emoticon input window, which I think is 'ctrl'-'.'
I want to make it more mistake-proof for entering text like date-time for example using a hotkey combination.
What am I doing wrong?

Sublime search specfic keywords as function withn the same file

In my project file extension is .ttcn and all the function in that file start with testcase name_of_the_function.
Is there any Sublime plugin exist that can list all the function that is start with keyword testcase followed by test case name?
FYI, most of the common programming languages sublime list all the functions name with shortcut ctrl'r. Thanks in advance for any suggestion or recommendation !
You can use the Find in Files functionality (Find -> Find in Files...). In the Find: field, make sure the first button (Regex) is selected, as well as the last two (Context and Use Buffer), then enter ^testcase. Add the directory you'd like to search in the Where: field, and make sure the Replace: field is empty. Hit the Find button, and a new tab will open showing all lines that begin with testcase.

Mysql multiple line requests

I'm new to MySQL and I am facing a little problem that I couldn't find an answer to in any previous thread here, so I was hoping someone could help, okay here it is:
When typing a request on mysql (on the terminal) you can just press enter to make it stand on many lines instead of one, but how do you get back to a previous line ?
I tried the arrow buttons and it didn't work, neither did the backspace button, any help is welcome, thank you in advance!
The mysql command uses the readline library. Each input line is edited independently, so once you press Return you can no longer go back and modify that line. The arrow keys will recall the line, but it's inserted into the current line being edited, and appends to the query.
So the solution is to NOT press Return until you've finished typing the whole query.
If you mean to show previously entered lines in order to send them again, according to the MySQL website, it should work via the up/down keys.
[...] the up-arrow and down-arrow keys move up and down through the set of previously entered line
http://dev.mysql.com/doc/refman/5.0/en/mysql-tips.html

phpStorm - create a template format

Suppose I have a constant template which is highly frequency typed ,
how could I generate a Shortcut Key which would type this template each time I hit that Shortcut Key ?
For eample -
I have the template -
<?php echo $myObj->getValue('arg1'); ?>
and I want each press on Shortcut Key Ctrl+c+f would paste the above template .
I do not know if this can have a direct shortcut, but you can insert such code with ctrl+j cursor and enter
For that you need to go to
File -> Settings -> Live Templates
Add another one for your needs. Bonus this way is, you can make a tab stop at the position of arg1 and quickly change that on every insert.

Show Vim omnicomplete on certain characters instead of Ctrl-X Ctrl-O?

In Vim 7, Ctrl-X Ctrl-O shows a list of possible values but I find this sequence of keys to be too long when I frequently use the autocomplete feature. For instance, in an HTML file, I'd like to see the list automatically popup after I type a < followed by one or two letters. In a CSS file, I'd like to see the list after I hit the ":" key. Is there a way to set this up?
To activate the omnicompletion on typing a ":" you can use
the following mapping.
imap : :<c-x><c-o>
The disadvantage is that each time you press ":" omnicompletion will
be activated, even when typing ":" in comments or in any other context
in which you do not want omnicompletion.
I have mapped ctrl-space to active omnicompletion:
imap <c-space> <c-x><c-o>
This gives me the choice to activate omni whenever I need it.
Another alternative that I found easier is just to press tab two times when you want autocomplete, and one time for regular tab.
Add the following line to your ~/.vimrc
imap <tab><tab> <c-x><c-o>