Skip to content

Latest commit

 

History

History
98 lines (66 loc) · 2.67 KB

File metadata and controls

98 lines (66 loc) · 2.67 KB

PHPStorm

The list of tools installed in container

  • PHPStorm
  • PHP 7.3
  • MySQL Client
  • Composer
  • PhpUnit
  • php_codesniffer
  • php-cs-fixer
  • Git
  • Python
  • Firefox

Build docker image

Go to folder

cd ~/dockerized-tools/vscode

Run command

./build.sh

Make VSCode executable from command line

sudo ln -s ~/dockerized-tools/vscode/vscode /usr/local/bin/vscode

Run VSCode

vscode

if you run vscode from command line, it starts and occupies terminal session

Create Desktop file and add to Favorites

  1. Coly a file called vscode.desktop in ~/.local/share/applications

  2. 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.png
    
    

    Note that 'Exec' should point to your vscode executable script, not the containing folder which is also named 'vscode' usually. Save the file.

  3. Make the vscode.desktop file executable by running

    chmod a+x ~/.local/share/applications/vscode.desktop
  4. Click on 'Show Applications' (the dot logo on the bottom left of the screen) and in the search bar enter 'vscode'. It should appear.

  5. Right click on the Icon and choose 'Add to favorites'.

Setup

  • 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

Extensions

IntelliJ IDEA Keybindings

Additional info

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