Code reformatting on save in PhpStorm or other jetbrains ide

Actually it is possible. The idea is to record a very simple macro that selects all the lines (Ctrl+A), formats (Ctrl+Alt+L), deselect all (Up and Down arrow) and saves a file (Ctrl+S), and bind this macro to Ctrl+S. Free Ctrl+S changing keyboard shortcut for “Save all” open File > Settings; search for “keymap” and open … Read more

How to use WSL as default terminal in WebStorm or any other JetBrains’ products?

After a bit of search on google found a solution to my question. First figure out the default wsl with the command: C:\Windows\System32\wslconfig /list Windows Subsystem for Linux Distributions: Ubuntu-18.04 Legacy (Default) then I set the default to Ubuntu-18.04 by C:\Windows\System32\wslconfig /setdefault Ubuntu-18.04 Finally set the terminal path in Webstrom settings>tools>terminal to C:\Windows\System32\wsl.exe Now open … Read more

What is the difference between “Revert Commit” and “Undo Commit” in IntelliJ IDEA?

Undo the last commit IntelliJ IDEA allows you to undo the last commit in the current branch (for example, HEAD). Note: You cannot undo a commit if it was pushed to a protected branch, that is a branch to which force –push is not allowed (configure protected branches in the Settings/Preferences dialog Ctrl+Alt+S under Version … Read more

How to Turn off automatic saving on web storm

Automatic save can be disabled using the following options: File | Settings | Appearance & Behavior | System Settings > Uncheck these boxes below: Save files on frame deactivation Save files automatically if application is idle for… Be aware that File Watchers feature may override this behavior for the specific file types (if enabled). Save … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)