-
Notifications
You must be signed in to change notification settings - Fork 0
/
ProjectName.code-workspace
96 lines (96 loc) · 2.79 KB
/
ProjectName.code-workspace
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"folders": [
{
"name": "SCSS",
"path": "./path/to/src/scss"
},
{
"name": "JavaScript",
"path": "./path/to/src/js"
}
{
"name": "Templates",
"path": "./path/to/twig/templates"
},
{
"name": "Modules",
"path": "./modules"
},
{
"name": "Config",
"path": "./sites/default/config"
},
{
"name": "Theme Root",
"path": "./path/to/theme"
},
{
"name": "Project Root",
"path": "."
},
],
"settings": {
// Set integrated terminal to open in this folder by default.
"terminal.integrated.cwd": "${workspaceFolder:Project Root}",
// Always indent with 2 spaces per drupal coding standards.
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.tabSize": 2,
// Add empty line to end of file per coding standards.
"files.insertFinalNewline": true,
// Add file type associations.
"files.associations": {
"*.html": "twig",
"*.module": "php",
"*.theme": "php",
"*.inc": "php"
},
// Send deleted items to system trash instead of insta-deleting.
"files.enableTrash": true,
// intelephense settings
"intelephense.environment.phpVersion": "8.0",
"intelephense.environment.documentRoot": "${workspaceFolder:Project Root}",
},
"launch": {
"version": "0.2.0",
"configurations": [
// DDEV xDebug Listener
// https://ddev.readthedocs.io/en/stable/users/step-debugging/#vscode
{
"name": "Listen for XDebug (DDEV)",
"type": "php",
"request": "launch",
"hostname": "0.0.0.0",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceFolder:Project Root}",
}
},
// Lando xDebug Listener
// https://docs.lando.dev/guides/lando-with-vscode.html
{
"name": "Listen for XDebug (Lando)",
"type": "php",
"request": "launch",
"port": 9003,
"pathMappings": {
"/app/": "${workspaceFolder:Project Root}"
}
},
]
},
"extensions": {
"recommendations": [
"redhat.vscode-yaml", // Yaml Langugae Support
"mblode.twig-language-2", // Twig Language Support
"mrmlnc.vscode-duplicate", // Duplicate action
"marcostazi.vs-code-drupal", // Extends PHP syntax highlighting for Drupal
"tsega.drupal-8-twig-snippets", // Drupal 8 Twig Snippets
"tsega.drupal-8-javascript-snippets", // Drupal 8 JS Snippets
"andrewdavidblum.drupal-smart-snippets", // Drupal Hook Snippets
"formulahendry.auto-close-tag", // Automatically create closing HTML tags
"formulahendry.auto-rename-tag", // Automatically rename matching HTML tags
"bmewburn.vscode-intelephense-client" // PHP hints & autocompletion
]
}
}