Download tar.gz version from https://code.visualstudio.com/download
Unpack, create an empty data
folder in vscode root
Optionally, create the pcode
command to open it from terminal without conficting with other vscode installation (run on vscode root):
$ sudo ln -s $(pwd)/bin/code /usr/local/bin/pcode
This step is required if you don't have php installed outside docker/sail and will override it if you have!:
$ sudo nano /usr/local/bin/php
add:
path=$(printf '%s\n' "${PWD##*/}")
command="./vendor/bin/sail php "$@""
echo "Running php on sail..."
$command
$ sudo chmod +x /usr/local/bin/php
https://marketplace.visualstudio.com/items?itemName=PKief.material-icon-theme
https://marketplace.visualstudio.com/items?itemName=dracula-theme.theme-dracula
https://marketplace.visualstudio.com/items?itemName=onecentlin.laravel5-snippets
https://marketplace.visualstudio.com/items?itemName=ryannaddy.laravel-artisan
https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
https://marketplace.visualstudio.com/items?itemName=georgykurian.laravel-ide-helper
$ sail composer require --dev barryvdh/laravel-ide-helper
$ sail artisan vendor:publish --provider="Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider" --tag=config
{
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Dracula",
"artisan.docker.enabled": true,
"artisan.docker.command": "./vendor/bin/sail",
"intelephense.files.associations": [
"*.php",
"*.phtml"
],
"files.associations": {
"*.module": "php"
}
}