Skip to content

Commit

Permalink
[Add] PHP CS Fixer extension to VS Code DevContainer,
Browse files Browse the repository at this point in the history
[Change] Configure PHP CS Fixer extension as default formatter in VS Code DevContainer,
[Add] PHP CS Fixer to recommended extensions for VS Code
  • Loading branch information
bumbummen99 committed Dec 2, 2024
1 parent 209308a commit 76ec6bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
"extensions": [
"junstyle.php-cs-fixer"
],
"settings": {
"php-cs-fixer.onsave": true,
"[php]": {
"editor.defaultFormatter": "junstyle.php-cs-fixer"
}
}
}
},
"postCreateCommand": ".devcontainer/postCreate.sh",
"remoteUser": "vscode"
}
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"junstyle.php-cs-fixer"
]
}

0 comments on commit 76ec6bf

Please sign in to comment.