Skip to content

Instantly share code, notes, and snippets.

@hsimah
Last active September 6, 2020 21:18
Show Gist options
  • Save hsimah/40871b02375c351473daac1c9c42875b to your computer and use it in GitHub Desktop.
Save hsimah/40871b02375c351473daac1c9c42875b to your computer and use it in GitHub Desktop.
VS Code devcontainer.json for WordPress, WSL2 & Docker
{
"name": "My Plugin",
"dockerComposeFile": [
"docker-compose.yml"
],
"service": "wordpress",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"eslint.alwaysShowStatus": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.workingDirectories": [
"/var/www/html/wp-content/plugins/my-plugin/app"
]
},
"extensions": [
"dbaeumer.vscode-eslint",
"bmewburn.vscode-intelephense-client",
"felixfbecker.php-debug"
],
"workspaceFolder": "/var/www/html",
"forwardPorts": [
80,
3000,
],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment