Skip to content

Instantly share code, notes, and snippets.

@nfabredev
Forked from nicolasrouanne/VSCODE_LAUNCH.md
Created February 14, 2019 14:25
Show Gist options
  • Save nfabredev/13fddcc9b7139527ddd2bf5d7674c772 to your computer and use it in GitHub Desktop.
Save nfabredev/13fddcc9b7139527ddd2bf5d7674c772 to your computer and use it in GitHub Desktop.
VS Code configuration for Ruby
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/main.rb"
},
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
},
{
"name": "Rails server",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"args": ["server"],
"useBundler": true,
"pathToBundler": "/Users/nicolasrouanne/.rvm/gems/ruby-2.5.1@goldengate/wrappers/bundle",
"env": { "RUBY_DEBUG_IDE": true }
},
{
"name": "RSpec - all",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"useBundler": true,
"pathToBundler": "/Users/nicolasrouanne/.rvm/gems/ruby-2.5.1@goldengate/wrappers/bundle",
"args": ["-I", "${workspaceRoot}"]
},
{
"name": "RSpec - active spec file only",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"useBundler": true,
"pathToBundler": "/Users/nicolasrouanne/.rvm/gems/ruby-2.5.1@goldengate/wrappers/bundle",
"args": ["-I", "${workspaceRoot}", "${file}"]
}
]
}
{
"git.ignoreMissingGitWarning": true,
"workbench.startupEditor": "newUntitledFile",
"git.enableSmartCommit": true,
"diffEditor.ignoreTrimWhitespace": false,
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"gitlens.codeLens.enabled": false,
"gitlens.currentLine.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"gitlens.hovers.enabled": false,
"gitlens.historyExplorer.enabled": false,
"gitlens.gitExplorer.files.layout": "list",
"ruby.format": "rubocop",
"ruby.codeCompletion": "rcodetools",
"ruby.intellisense": "rubyLocate",
"editor.formatOnSave": true,
"editor.formatOnSaveTimeout": 5000
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment