Skip to content

Instantly share code, notes, and snippets.

@Sumith1896
Created February 14, 2022 21:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sumith1896/6ea8fa9089d7a3704c96597971c22c53 to your computer and use it in GitHub Desktop.
Save Sumith1896/6ea8fa9089d7a3704c96597971c22c53 to your computer and use it in GitHub Desktop.
vscode keybindings
// Place your key bindings in this file to override the defaults
[
{
"key": "ctrl+i",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "import ipdb; ipdb.set_trace()"
}
}
{
"key": "ctrl+alt+q",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "#!/bin/bash\n#\n#SBATCH --job-name=JOBNAME\n#SBATCH --partition=PARTITION\n#SBATCH --gres=gpu:GPUS\n#SBATCH --nodelist=NODES\n#SBATCH --mem=MEMGB\n#SBATCH --cpus-per-task=CPUS\n\neval\ \"$(conda shell.bash hook)\"\nconda activate ENVNAME\nexport PATH=/viscam/u/sumith/Jacinle/bin:$PATH\n\n"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment