How can I tell PHPStorm to refactor namespaces and class names?
I encountered the same issue. The reason was that I was trying to move the file (from project view), instead of moving the class (right click on the name in the source code).
I encountered the same issue. The reason was that I was trying to move the file (from project view), instead of moving the class (right click on the name in the source code).
It’s not possible with PhpStorm 6. Here is a snapshot of the Project Settings (where you can set those options):
Following the PhpStorm issue, here is what I added to phpstorm64.vmoptions (that I have installed in /usr/local/bin/PhpStorm/bin/): -Dswing.aatext=true -Dawt.useSystemAAFontSettings=gasp -Dsun.java2d.xrender=true I also did the trick of opening the font in FontForge: Ctrl+A (select all chars) Hints -> Clear Hints Hints -> Clear Instructions File -> Generate Font I put it in ~/fonts/ I am running … Read more
Workaround: Terminal works fine in Windows 10 if you use legacy console. To do so, open a command prompt window, right click on the title, then select Properties. At the bottom, check “Use legacy console”. Confirm the dialog window and go back to WebStorm to launch a new terminal. It should work. In any case, … Read more
Select your lines Code | Surround With… For Windows/Linux: Ctrl + Alt + T For MacOS: Cmd + Alt + T Choose “Emmet” Type p* — this will surround each line with <p> tag NOTE: Empty lines will be wrapped as well so it is better remove them in advance. Similar/related case. P.S. In current … Read more
You’ve enabled Column Selection Mode, it can be toggled from the Edit menu or with the corresponding keyboard shortcut.
Starting from PhpStorm 2022.1: To highlight folders containing vcs changed files enable: File | Settings | Version Control | Confirmation | Highlight directories that contain modified files in the Project tree Older versions: As mentioned in comment by LazyOne; The Project panel does highlight any VCS changes, but to also highlight all parent-folders of changed-files, … Read more
PHPStorm used to “lag” for me before quite often too… but I managed to fix it in the following ways (It did take a bit of tweaking/experimenting though to get it to work! But now it is blazing fast once again!) Here is what I did to optimize it: 1) If you are on Linux … Read more
File | Settings | Editor | General |Editor Tabs | Mark Modified tabs with asterisk
Go to IDE Settings -> File types and look for Text files in Recognized file types. There might be an added pattern named root.js For newer versions this setting is found in Editor -> File types