Add VS Code settings from the webgui

* add recommended extensions
* associate .page files with PHP
* add sftp-template.json
This commit is contained in:
ljm42
2023-10-25 12:15:52 -07:00
committed by Zack Spear
parent 9e895aed58
commit ca93ac7143
4 changed files with 35 additions and 2 deletions

3
.gitignore vendored
View File

@@ -50,8 +50,7 @@ typings/
.next
# Visual Studio Code workspace
.vscode/*
!.vscode/extensions.json
.vscode/sftp.json
# OSX
.DS_Store

10
.vscode/extensions.json vendored Normal file
View File

@@ -0,0 +1,10 @@
{
"recommendations": [
"natizyskunk.sftp",
"davidanson.vscode-markdownlint",
"bmewburn.vscode-intelephense-client",
"foxundermoon.shell-format",
"timonwong.shellcheck",
"esbenp.prettier-vscode"
]
}

View File

@@ -1,4 +1,7 @@
{
"files.associations": {
"*.page": "php"
},
"editor.codeActionsOnSave": {
"source.fixAll": false,
"source.fixAll.eslint": true

21
.vscode/sftp-template.json vendored Normal file
View File

@@ -0,0 +1,21 @@
{
"_comment": "rename this file to .vscode/sftp.json and replace name/host/privateKeyPath for your system",
"name": "Tower",
"host": "Tower.local",
"protocol": "sftp",
"port": 22,
"username": "root",
"privateKeyPath": "C:/Users/username/.ssh/tower",
"remotePath": "/",
"context": "plugin/source/dynamix.unraid.net/",
"uploadOnSave": true,
"useTempFile": false,
"openSsh": false,
"ignore": [
"// comment: ignore dot files/dirs in root of repo",
".github",
".vscode",
".git",
".DS_Store"
]
}