In Textmate if you type def
+ Tab, it sets things up for you like that. I believe Sublime does the same.
Does a Sublime Text plugin exist that makes creating Ruby classes and methods faster? [closed]
-
04-10-2022 - |
Pregunta
Is there a Sublime Text plugin for Ruby that, after I type class/def something
+ Enter, will automatically insert end
and place the curser in the class/method?
For example, typing def initialize(args)
+ Enter would result in:
def initialize(args)
#cursor here
end
Solución
Otros consejos
I haven't used sublime, but here is what i found.
you could create snippets using Ruby on Rails Snippet package
You could use the solution given in 'How to automatically add "end" to code blocks?'.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow