Due to a PhpStorm bug you'll want to put the full name of the binary, like php8.0 if you're not using the default version. In the PHP Interpreter path, you can just put php if you're using the default PHP version (currently 7.4).
In the CLI interpreter "Lifecycle" select "Connect to existing container"ĩ. You'll need to rename your project to get these instructions to work.)Ĩ. (Note that DDEV project names that contain dots do not currently work due to a PhpStorm bug. Add an environment variable COMPOSE_PROJECT_NAME=ddev. , (Command+Shift+Dot) to show hidden dotfiles.ħ. So "Virtual Machine Path" would be "/var/Now back in the "Configure Remote PHP Interpreter" for "Configuration files" use. In the "Path mappings" of the "Server" you may have to map the local paths (which on WSL2 means /home/.) to the in-container paths, especially if you have mutagen enabled. Choose "Docker for Windows" or "Docker for Mac"Ĥ. Create a server the default name is "docker", but since the "server" for each project will be different, name it for the project, for example "DDEV d9". Use the "+" to select "From Docker, Vagrant, VM."ģ.
#Phpstorm 10 slow windows#
If you're on Windows, running PhpStorm on the Windows side but using WSL2 for your DDEV project, open the project as a WSL2 project. In this example, the project name is "d9" and the site is "d9.ddev.site". WSL2 instructions are provided where necessary.
#Phpstorm 10 slow how to#
This explores how to add full PhpStorm integration with a DDEV project, including composer and phpunit. PhpStorm Integration PhpStorm Configuration and Integration ¶ Full Integration with Docker, DDEV, and PhpStorm ¶ Sharing a project with `ddev share` or by exposing a port Full Integration with Docker, DDEV, and PhpStorm