PhpStorm “Let definition are not supported by current JavaScript version”

Go to Settings / Languages & Frameworks / JavaScript (it may be Preferences / Languages & Frameworks / JavaScript on some OSes) …and set the “JavaScript language version” to “ECMAScript 6” (or, if they’ve updated to reflect current naming, “ECMAScript 2015” — or “ECMAScript 2016” or later if you’re coding to a newer spec):

Using PhpStorm IdeaVim, I can’t use shift+arrow keys to select words

I would create a ~/.ideavimrc with the following lines nmap <S-Up> v<Up> nmap <S-Down> v<Down> nmap <S-Left> v<Left> nmap <S-Right> v<Right> vmap <S-Up> <Up> vmap <S-Down> <Down> vmap <S-Left> <Left> vmap <S-Right> <Right> imap <S-Up> <Esc>v<Up> imap <S-Down> <Esc>v<Down> imap <S-Left> <Esc>v<Left> imap <S-Right> <Esc>v<Right> It makes my code select text in the same way.

What is the ‘Resource Root’ designation for in PHPStorm? For that matter, what does PHPStorm consider to be a resource?

I can answer anecdotally that URL paths will be resolved against “resource roots” where applicable. For instance, in HTML <a href=”https://stackoverflow.com/questions/24852739/…”> or <img src=”https://stackoverflow.com/questions/24852739/…”> elements, relative URLs are looked up against resource roots. When you start typing within the href or src attributes, auto-completion will suggest items in those directories, and URLs which cannot be … Read more

How to debug php artisan serve in PHPStorm?

Debugging using php artisan serve does not work unless you have enabled debugging in ini file. @Bogdan pointed out the reason. artisan serve will call PHP Built-in Web Server but does not pass on the php command line options (named interpreter options in PHPStorm). i.e. if you execute from command line: $ php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req … Read more