Skip to content

Commit fce53f3

Browse files
sync vscode settings
1 parent b713ae7 commit fce53f3

File tree

4 files changed

+74
-0
lines changed

4 files changed

+74
-0
lines changed

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"xdebug.php-debug",
4+
"neilbrayfield.php-docblocker",
5+
"bmewburn.vscode-intelephense-client",
6+
"mehedidracula.php-namespace-resolver",
7+
"sanderronde.phpstan-vscode",
8+
"recca0120.vscode-phpunit",
9+
"open-southeners.laravel-pint",
10+
"shufo.vscode-blade-formatter"
11+
]
12+
}

.vscode/launch.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Listen for Xdebug",
9+
"type": "php",
10+
"request": "launch",
11+
"port": 9003
12+
},
13+
{
14+
"name": "Launch currently open script",
15+
"type": "php",
16+
"request": "launch",
17+
"program": "${file}",
18+
"cwd": "${fileDirname}",
19+
"port": 0,
20+
"runtimeArgs": [
21+
"-dxdebug.start_with_request=yes"
22+
],
23+
"env": {
24+
"XDEBUG_MODE": "debug,develop",
25+
"XDEBUG_CONFIG": "client_port=${port}"
26+
}
27+
},
28+
{
29+
"name": "Launch Built-in web server",
30+
"type": "php",
31+
"request": "launch",
32+
"runtimeArgs": [
33+
"-dxdebug.mode=debug",
34+
"-dxdebug.start_with_request=yes",
35+
"-S",
36+
"localhost:0"
37+
],
38+
"program": "",
39+
"cwd": "${workspaceRoot}",
40+
"port": 9003,
41+
"serverReadyAction": {
42+
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
43+
"uriFormat": "http://localhost:%s",
44+
"action": "openExternally"
45+
}
46+
}
47+
]
48+
}

.vscode/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"[php]": {
3+
"editor.defaultFormatter": "open-southeners.laravel-pint",
4+
"editor.formatOnSave": true
5+
},
6+
"[blade]": {
7+
"editor.defaultFormatter": "shufo.vscode-blade-formatter",
8+
"editor.formatOnSave": true
9+
}
10+
}

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ git fetch --all
1818
git merge template/main --allow-unrelated-histories
1919
```
2020

21+
## VS Code Extension
22+
23+
Mở VS Code Extension gõ @recommended và cài toàn bộ `WORKSPACE RECOMMENDATIONS` extension.
24+
2125
## Format Code
2226

2327
Vui lòng chạy lệnh dưới đây trước khi gửi Pull Request!

0 commit comments

Comments
 (0)