Skip to content

Instantly share code, notes, and snippets.

@idanblich
Last active February 24, 2019 08:06
Show Gist options
  • Save idanblich/c65a33d795b10f46a5a331f96eb7b516 to your computer and use it in GitHub Desktop.
Save idanblich/c65a33d795b10f46a5a331f96eb7b516 to your computer and use it in GitHub Desktop.
Global snippet for VSCode , to create open VF page and Lightning App
{
"Create tasks": {
"prefix": "tasks.json",
"body": [
"{",
" \"version\": \"2.0.0\",",
" \"tasks\": [",
" {",
" \"label\": \"SFDX: Open Visualforce Page\",",
" \"type\": \"shell\",",
" \"command\": \"sfdx\",",
" \"args\": [",
" \"force:org:open\",",
" \"--path\",",
" \"/apex/\\${fileBasenameNoExtension\\}\",",
" ],",
" \"group\": \"build\",",
" \"presentation\": {",
" \"reveal\": \"always\",",
" \"panel\": \"shared\"",
" },",
" \"problemMatcher\": []",
" },",
" {",
" \"label\": \"SFDX: Open Lightning App\",",
" \"type\": \"shell\",",
" \"command\": \"sfdx\",",
" \"args\": [",
" \"force:org:open\",",
" \"--path\",",
" \"/c/\\${fileBasename\\}\",",
" ],",
" \"group\": \"build\",",
" \"presentation\": {",
" \"reveal\": \"always\",",
" \"panel\": \"shared\"",
" },",
" \"problemMatcher\": []",
" }",
" ]",
"}"
],
"description": "Create tasks to open vf code and lightning app"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment