PhpStorm terminal shift select - intellij-idea

If I try to shift select text in PhpStorm on Mac terminal it only renders further letters like:
text selection test shift command leftDDDDDDDDD shift leftDDDDDDD shift rightCCCCCCCCCCC
Anyone any idea?

Related

How to select a text and put it directly on the search and replace bar of IntelliJ

I'm an IntelliJ user since years and I work on a Mac.
For a long I was able to execute like an automata the following procedure:
select a portion of a text in a file using the mouse
pressing a combination of keys
seeing the selected text in the find & replace bar of the IDE.
Now, I can't remember how to do it.
I have search through the docs of the search & replace in a file, but I cannot see that option.
Just to avoid confusion, the toolbar I'm talking about is the following
I am using IntelliJ on linux (Keymap : Default for xwin) and to select text I use Ctrl+W or Mouse double click. Then ctrl+R will put this text in replace text box
Probably it's a kind of bug. It should work by selecting the text and pressing cmd+r.
Cases when it works:
I select a piece of text in a line and I press cmd+R.
I select the whole line (including white spaces/tabs at the beginning)
Case when does not work:
I select a line from the first character to the last.
More context. I use IntelliJ 2017.2.5 on Mac Os Sierra.

Is there a functionality like Ctrl + D in Sublime for Intellij Idea?

In Sublime Text I used to select some text (say a variable name) and I would just type Ctrl + D to get the rest of the occurrences of the same text.
Is there a functionality like that in Intellij Idea IDE?
Select All Occurrences (Ctrl-Cmd-G on Mac OS X is already available, Windows hotkey Ctrl+Alt+Shift+J will be available from the next EAP – use double shift | Select All Occurrences action for now)

What is the Stata 11 do-file editor shortcut for selecting a command line?

A task I use multiple times a minute is to select command lines from my do-files and execute them.
The shortcut for this function in previous versions of Stata was Ctrl+Shift+Up/Down arrow. I used to use Stata 10 and now that I've upgraded to Stata 11, the keystroke sequence described in the previous sentence does nothing. I'm limited to Ctrl+Shift+Left/Right arrows, which is painstakingly slow.
Go to the start of the line (with the Home key) and then Shift+Up/Down.
Credit:
The comment by Roberto Ferrer
I automate the selecting of line and exectuting the command with the following autohotkey script.:
^+Enter::Send {Control down}l{Control up}{pause}^d{down}{Home}
Return
Above is assigned to Ctrl + Shift + Enter, but it could be any keyboard combination. I usually use Ctrl + Ö or Ctrl + Ä since I use a scandinavian keyboard.
Same code as above but assigned to Ctrl + Ö:
^ö::Send {Control down}l{Control up}{pause}^d{down}{Home}
Return
If you prefer having the cursor at the end of the next line after executing, replace {Home} with {End}

Adding spaces in multiple lines simultaneously - in Pycharm

I occasionally need to go line-by line and change the indentation of the code.
Is there a shortcut in Pycharm where I can add spaces (format the indent) in the begining of multiple lines simultaneously without processing each line individually?
Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level.
You can remove spaces with SHIFT TAB.
You can also use CTRL+ALT+I to auto-indent the selection.
Select the block that you want to indent then press TAB. It will work.
To auto indent all the codes in Pycharm just press these sequencies:
CTR + A to select all the text files and then press
CTRL+ALT+I
Select all that you want to indent, then do CTRL+ALT+I to indent all of it. This should work in Pycharm
Use shift +alt on windows machine
Continuation indent for Mac pro: Preferences -> Editor -> Code Style -> the language -> Tabs and Indents
If Ctrl + ALT + I is not working and every time needs to press the Insert button to get the pointer.
So go to Tools -> Select Vim if it is checked then it will be disabled.
Now you can intend code directly selecting multiple lines.

How to reindent lines in IntelliJ IDEA / WebStorm?

In Eclipse, I can select a few lines and press Ctrl + I to reindent those lines. How do I do the same in IntelliJ IDEA / WebStorm?
Note:
I don't want to "indent" or "unindent" the selected lines - that would "move" the text to the right or to the left manually. I want the IDE to be clever about how to position the lines.
I don't want to reformat anything, i.e. there should be no modifications to characters beyond the first non-whitespace character on every line.
Code | Auto-Indent Lines (Ctrl+Alt+I in Windows default keymap).
On a mac, it's Ctrl+Option+I by default.
What worked for me on mac was
⌘ + OPTION + L
Windows:
Ctrl + Alt + L
Mac:
⌘ + OPTION + L
In Webstorm the option can be found as "Reformat Code" in the keymap.
The default on Mac is Alt Cmd l