Skip to content

Instantly share code, notes, and snippets.

@vikbert
Last active April 6, 2019 07:13
Show Gist options
  • Select an option

  • Save vikbert/c995e84c2b693f876b75a6f6c28ad7d0 to your computer and use it in GitHub Desktop.

Select an option

Save vikbert/c995e84c2b693f876b75a6f6c28ad7d0 to your computer and use it in GitHub Desktop.
[phpstorm] config for phpstorm

config files

read more

cd /Users/xzhou/Library/Preferences/PhpStorm2018.2
vi phpstorm.vmoptions

PHPstorm log

tail -f /Users/xzhou/Library/Logs/PhpStorm2018.2/idea.log

PHPstorm Java

install java 8

brew tap caskroom/versions
brew cask install java8
brew search java

switch between installed runtimes, 2x shift, then enter swich IDE Boot JDK read more

ls -al /Library/Java/JavaVirtualMachines/jdk1.8.0_192.jdk

Resource: How to PHPStorm

useful video for mastering phpstorm

This is the configuration of symfony 2 project in PHPStorm Editor. It is optimized for better indexing and symfony support.

Directories config

Go to Preferences => Directories

marked as tests src/AppBundle/tests

marked as sources .app/

marked as Excluded .idea/ .app/cache/ .app/logs/ .app/DoctrineMigrations/ .app/files .data/csv .node_modules/ .sql/ .vendor/ .web/

marked as Resources Root .web/

Includes vendor as External Libraries

Go to Language & Framework => php => include path, then click on + to add vendor folder In project view of PHPStorm, the external Libraries should contain now two Libs:

PHP (the vendor)
PHP Runtime (standard PHP libs)

highlighting Vagrantfile

read more [highlighting ruby]

update the TextMate Color Scheme to Darcula go to Editor=>TextMate Bundles=>TextMate Bundles => Vikbert's Darcular::Darcula

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment