The list of tools installed in container
- PHPStorm
- PHP 7.3
- MySQL Client
- Composer
- PhpUnit
- php_codesniffer
- php-cs-fixer
- Git
- Python
- Firefox
Go to folder
cd ~/dockerized-tools/vscodeRun command
./build.shsudo ln -s ~/dockerized-tools/vscode/vscode /usr/local/bin/vscodevscodeif you run vscode from command line, it starts and occupies terminal session
-
Coly a file called vscode.desktop in
~/.local/share/applications -
Edit content of the file and replace the 'path-to-dockerized-tools' with actual path to dockerized-tools.
Note that you have to use full path and do not use ~ as short cut to user home directory
[Desktop Entry] Version=1.0 Type=Application Terminal=false Icon[en_US]=path-to-dockerized-tools/vscode/logo.png Name[en_US]=VSCode Exec=path-to-dockerized-tools/vscode/vscode Name=VSCode Icon=path-to-dockerized-tools/vscode/logo.pngNote that 'Exec' should point to your vscode executable script, not the containing folder which is also named 'vscode' usually. Save the file.
-
Make the vscode.desktop file executable by running
chmod a+x ~/.local/share/applications/vscode.desktop -
Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'vscode'. It should appear.
-
Right click on the Icon and choose 'Add to favorites'.
- Open VS Code
- Open terminal (crtl+`)
- Navigate to ~/dockerized_tools/vscode folder
- Run ./setup.sh
- RUN bash-it reload
This setup will enable several VS Code extensions related to PHP development, but you are free to enable any extension that will increase your productivity
This setup also Bash-it is a collection of community Bash commands and scripts for Bash 3.2+. More info how to use it and customize it can be found here
The default theme is 'bobby' but I prefer 'sexy' so setup change the theme used for terminal prompt. You are free to change this, and select own theme, more info here
IntelliJ IDEA Keybindings
if you see this message "Visual Studio Code is unable to watch for file changes in this large workspace" you miss the step from setup dockerized tools environment. More info here