Create hot key for some editor action?

Hello guys!

Every time when I writing a function I end up with cursor in brackets and I need go left, write semicolon, go right and continue my code. So I want to create hot key like Ctrl+Shift+; to add semicolon to the end of current line. Is there any way to create some such script for PhpStorm editor?

3 comments

Hi there,

Please try Ctrl+Shift+Enter (Complete Current Statement) -- it should add missing parts and will place cursor at the end of the statement (hence it should be used at the very end (when main part is already written) instead of proposed in the middle).

0

Thanks but I just can't focus on code when I see highlighted error in the end of line. Ctrl+Shift+Enter is helpful but I still need to back to prev cursor position. Can we Complete Current Statement without changing cursor position? Maybe I need to create fiture on tracker?

0

Feel free to do it.

If it will gather enough interest, it will be eventually implemented.

But please check for already existing tickets duplicates before posting your: http://youtrack.jetbrains.com/issues/IDEA and http://youtrack.jetbrains.com/issues/IDEABKL

0

Please sign in to leave a comment.