- Quick and Simple Text Selection by David Bankier
- EditorConfig for VS Code by EditorConfig
- File Utils by Steffen Leistner
- PHP Intelephense by Ben Mewburn
- Vue Language Features (Volar) by Vue
- Run on Save by emeraldwalk
Last active
May 2, 2025 15:39
-
-
Save efcor/0f85d1b994fb3f6dc1bf4ef8f3b5182a to your computer and use it in GitHub Desktop.
VS Code Settings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Method": { | |
"prefix": "met", | |
"body": [ | |
"$1($2) {", | |
" //$0", | |
"}," | |
], | |
"description": "New method" | |
}, | |
"Console Log": { | |
"prefix": "cl", | |
"body": [ | |
"console.log($1);", | |
], | |
"description": "console.log(value);" | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "cmd+h", | |
"command": "workbench.files.action.collapseExplorerFolders" | |
}, | |
{ | |
"key": "alt+cmd+2", | |
"command": "workbench.action.splitEditorRight" | |
}, | |
{ | |
"key": "ctrl+shift+up", | |
"command": "cursorMove", | |
"args": { | |
"to": "up", | |
"by": "line", | |
"value": 10 | |
}, | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "ctrl+shift+down", | |
"command": "cursorMove", | |
"args": { | |
"to": "down", | |
"by": "line", | |
"value": 10 | |
}, | |
"when": "editorTextFocus" | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Public Method": { | |
"prefix": "met", | |
"body": [ | |
"/**", | |
" * Todo comment me", | |
" *", | |
" * @param todotype \\$todoname", | |
" * @return todotype", | |
" */", | |
"public function $1($2)", | |
"{", | |
" $3", | |
"}" | |
], | |
"description": "New public method" | |
}, | |
"Public Method without Comments": { | |
"prefix": "metnc", | |
"body": [ | |
"public function $1($2)", | |
"{", | |
" $3", | |
"}" | |
], | |
"description": "New public method without comments" | |
}, | |
"Protected Method": { | |
"prefix": "pmet", | |
"body": [ | |
"/**", | |
" * Todo comment me", | |
" *", | |
" * @param todotype \\$todoname", | |
" * @return todotype", | |
" */", | |
"protected function $1($2)", | |
"{", | |
" $3", | |
"}" | |
], | |
"description": "New protected method" | |
}, | |
"Protected Method without Comments": { | |
"prefix": "pmetnc", | |
"body": [ | |
"protected function $1($2)", | |
"{", | |
" $3", | |
"}" | |
], | |
"description": "New protected method without comments" | |
}, | |
"Browser Method": { | |
"prefix": "bmet", | |
"body": [ | |
"/**", | |
" * Todo comment me", | |
" *", | |
" * @param Browser \\$browser", | |
" * @return void", | |
" */", | |
"public function $1(Browser \\$browser)", | |
"{", | |
" $2", | |
"}" | |
], | |
"description": "New dusk browser method" | |
}, | |
"Public Property": { | |
"prefix": "prop", | |
"body": [ | |
"/**", | |
" * Todo comment me.", | |
" *", | |
" * @var todotype", | |
" */", | |
"public \\$$1;" | |
], | |
"description": "New public property" | |
}, | |
"Protected Property": { | |
"prefix": "pprop", | |
"body": [ | |
"/**", | |
" * Todo comment me.", | |
" *", | |
" * @var todotype", | |
" */", | |
"protected \\$$1;" | |
], | |
"description": "New protected property" | |
}, | |
"Test": { | |
"prefix": "test", | |
"body": [ | |
"#[Test]", | |
"public function $1()", | |
"{", | |
" //", | |
"}" | |
], | |
"description": "Test" | |
}, | |
"Docblock": { | |
"prefix": "doc", | |
"body": [ | |
"/**", | |
" * Todo comment me", | |
" *", | |
" * @param todotype \\$todoname", | |
" * @return todotype", | |
" */" | |
], | |
"description": "Docblock comment" | |
}, | |
"Dusk Screenshot": { | |
"prefix": "ss", | |
"body": [ | |
"->screenshot('tmp')", | |
], | |
"description": "Chain dusk screenshot method" | |
}, | |
"Dusk assertSeeIn": { | |
"prefix": "asi", | |
"body": [ | |
"->assertSeeIn('@$1', '$2')", | |
], | |
"description": "Chain dusk assertSeeIn method" | |
}, | |
"Dusk assertVisible": { | |
"prefix": "av", | |
"body": [ | |
"->assertVisible('@$1')", | |
], | |
"description": "Chain dusk assertVisible method" | |
}, | |
"Dusk assertMissing": { | |
"prefix": "am", | |
"body": [ | |
"->assertMissing('@$1')", | |
], | |
"description": "Chain dusk assertMissing method" | |
}, | |
"Dusk Browse": { | |
"prefix": "brow", | |
"body": [ | |
"\\$this->browse(function (Browser \\$browser) {", | |
" \\$browser->visit(new IndexPage)", | |
" ;", | |
"});" | |
], | |
"description": "Dusk browse method" | |
}, | |
"Add Test Route": { | |
"prefix": "atr", | |
"body": [ | |
"Route::get('test', function () {", | |
" return 'test';", | |
"});" | |
], | |
"description": "Add a test closure route" | |
}, | |
"Add PHPUnit Group A": { | |
"prefix": "gra", | |
"body": [ | |
"#[\\PHPUnit\\Framework\\Attributes\\Group('a')]", | |
], | |
"description": "Add a phpunit group a function attribute" | |
}, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.startupEditor": "none", | |
"workbench.statusBar.visible": false, | |
"editor.minimap.enabled": false, | |
"workbench.activityBar.location": "hidden", | |
"git.openRepositoryInParentFolders": "never", | |
"emeraldwalk.runonsave": { | |
"commands": [ | |
{ | |
"match": "\\.php$", | |
"cmd": "if [[ -e \"${workspaceFolder}/vendor/bin/pint\" ]] && [[ ${file} != ${workspaceFolder}/vendor/* ]]; then\n ${workspaceFolder}/vendor/bin/pint ${file} || echo \"run pint on save failed\" > ${workspaceFolder}/pint-run-on-save-failed\nfi\n" | |
// this version handles vscode not having php in its $PATH | |
// "cmd": "PATH=$PATH:/Users/yourname/Library/Application\\ Support/Herd/bin && ${workspaceFolder}/vendor/bin/pint ${file} || echo \"run pint on save failed\" > ${workspaceFolder}/pint-run-on-save-failed" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment