Skip to content

Instantly share code, notes, and snippets.

@llekn
Created May 25, 2022 16:42
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 llekn/b9b954a6b115dfd89f76e0865078c0a3 to your computer and use it in GitHub Desktop.
Save llekn/b9b954a6b115dfd89f76e0865078c0a3 to your computer and use it in GitHub Desktop.
Pry configuration for integration with vscode and sublime
Pry::Commands.block_command('enable-pry', 'Enable `binding.pry` feature') do
ENV['DISABLE_PRY'] = nil
end
# Sublime
# Pry.config.editor = -> (file, line) { line == 0 ? "subl #{file}" : "subl #{file}:#{line}" }
# VSCode
Pry.config.editor = ->(file, line) { "code --goto #{file}:#{line} --wait" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment