Browse Source

feat:增加项目的vscode配置文件,统一项目组成员配置

Yin Bin 4 months ago
parent
commit
521ed06349
3 changed files with 116 additions and 1 deletions
  1. 0 1
      .gitignore
  2. 50 0
      .vscode/launch.json
  3. 66 0
      .vscode/settings.json

+ 0 - 1
.gitignore

@@ -18,7 +18,6 @@ npm-debug.log
 yarn-error.log
 /.fleet
 /.idea
-/.vscode
 /.zed
 /.scribe
 /resources/views/vendor/scribe

+ 50 - 0
.vscode/launch.json

@@ -0,0 +1,50 @@
+{
+    // Use IntelliSense to learn about possible attributes.
+    // Hover to view descriptions of existing attributes.
+    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Listen for Xdebug",
+            "type": "php",
+            "request": "launch",
+            "port": 9003
+        },
+        {
+            "name": "Launch currently open script",
+            "type": "php",
+            "request": "launch",
+            "program": "${file}",
+            "cwd": "${fileDirname}",
+            "port": 0,
+            "runtimeArgs": [
+                "-dxdebug.start_with_request=yes"
+            ],
+            "env": {
+                "XDEBUG_MODE": "debug,develop",
+                "XDEBUG_CONFIG": "client_port=${port}"
+            }
+        },
+        {
+            "name": "Launch Built-in web server",
+            "type": "php",
+            "request": "launch",
+            "runtimeArgs": [
+                "-dxdebug.mode=debug",
+                "-dxdebug.start_with_request=yes",
+                "artisan",
+                "serve",
+                "--host=192.168.110.10",
+                "--port=80"
+            ],
+            "program": "",
+            "cwd": "${workspaceRoot}",
+            "port": 9003,
+            "serverReadyAction": {
+                "pattern": "Development Server \\(http://192.168.110.10:80\\) started",
+                "uriFormat": "http://192.168.110.10:80",
+                "action": "openExternally"
+            }
+        }
+    ]
+}

+ 66 - 0
.vscode/settings.json

@@ -0,0 +1,66 @@
+{
+    "i18n-ally.localesPaths": [
+        "lang"
+    ],
+    "rest-client.environmentVariables": {
+        "$shared": {
+            "version": "v1"
+        },
+        "development": {
+            "host": "http://127.0.0.1",
+            "token": "Bearer 4|61U2jey1KvR4Z1pE7Qr8Sh9ri2G3jn1ClnonXA2J86f61575"
+        },
+        "testing": {
+            "host": "http://test-api.example.com",
+            "token": "test-token"
+        },
+        "production": {
+            "host": "http://api.example.com",
+            "token": "prod-token"
+        }
+    },
+    "git.autofetch": true,
+    "git.autofetchPeriod": 300,
+    "git.autoStash": true,
+    "git.pullBeforeCheckout": true,
+    "window.zoomLevel": 1,
+    "workbench.colorTheme": "Default Light Modern",
+    "windsurf.autocompleteSpeed": "fast",
+    "redhat.telemetry.enabled": true,
+    "ansible.validation.lint.arguments": "--skip-list=fqcn[action-core,action]",
+    "vim.useCtrlKeys": true,
+    "vim.handleKeys": {
+        "<C-a>": false,
+        "<C-b>": false,
+        "<C-c>": false,
+        "<C-d>": false,
+        "<C-e>": false,
+        "<C-f>": false,
+        "<C-g>": false,
+        "<C-h>": false,
+        "<C-i>": false,
+        "<C-j>": false,
+        "<C-k>": false,
+        "<C-l>": false,
+        "<C-m>": false,
+        "<C-n>": false,
+        "<C-o>": false,
+        "<C-p>": false,
+        "<C-q>": false,
+        "<C-r>": false,
+        "<C-s>": false,
+        "<C-t>": false,
+        "<C-u>": false,
+        "<C-v>": false,
+        "<C-w>": false,
+        "<C-x>": false,
+        "<C-y>": false,
+        "<C-z>": false
+    },
+    "git.enableSmartCommit": true,
+    "i18n-ally.displayLanguage": "zh-CN",
+    "workbench.iconTheme": "vscode-icons",
+    "database-client.autoSync": true,
+    "files.eol": "\n",
+    "notebook.lineNumbers": "on",
+}