Skip to content

Instantly share code, notes, and snippets.

@BrianSigafoos
Last active September 1, 2020 17:34
Show Gist options
  • Save BrianSigafoos/93e5d932b3817a9eb5868fa779d0f557 to your computer and use it in GitHub Desktop.
Save BrianSigafoos/93e5d932b3817a9eb5868fa779d0f557 to your computer and use it in GitHub Desktop.
VS Code
[
{
"key": "cmd+q",
"command": "-workbench.action.quit",
},
{
"key": "alt+cmd+.",
"command": "workbench.action.terminal.focusAtIndex1"
},
{
"key": "alt+cmd+/",
"command": "workbench.action.terminal.focus"
},
{
"key": "alt+cmd+right",
"command": "workbench.action.terminal.focusNext",
},
{
"key": "alt+cmd+left",
"command": "workbench.action.terminal.focusPrevious",
},
{
"key": "cmd+shift+g",
"command": "workbench.view.scm",
},
{
"key": "ctrl+cmd+t",
"command": "workbench.action.tasks.runTask",
"args": "rspec file"
},
{
"key": "ctrl+cmd+r",
"command": "workbench.action.tasks.runTask",
"args": "test file"
},
{
"key": "ctrl+cmd+shift+r",
"command": "workbench.action.tasks.runTask",
"args": "rubocop auto-correct file"
}
]
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"label": "A - rails server",
"type": "shell",
"command": "rm log/development.log; rm log/test.log; bundle exec rails s",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "B - webpack",
"type": "shell",
"command": "bundle install; yarn install; lerna build; touch tmp/restart.txt; yarn webpack",
"problemMatcher": [],
"presentation": {
"reveal": "always"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "C - rails console",
"type": "shell",
"command": "bundle exec rails c",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "ruby irb",
"type": "shell",
"command": "bundle exec irb",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "bundle install",
"type": "shell",
"command": "bundle install",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "rubocop auto-correct file",
"type": "shell",
"command": "bundle exec rubocop --auto-correct ${relativeFile}",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "test file",
"type": "shell",
"command": "bundle exec rspec ${relativeFile}",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "sidekiq mailers",
"type": "shell",
"command": "bundle exec sidekiq -q mailers",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"label": "sidekiq reports",
"type": "shell",
"command": "bundle exec sidekiq -q reports",
"problemMatcher": [],
"presentation": {
"reveal": "always"
}
},
{
"type": "npm",
"script": "lint-staged",
"problemMatcher": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment