Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialColin Stodd
3,160 PointsAutomatically add the "end"'s in Ruby. Snippet for Sublime Text?
Does anyone know what/where to find the Sublime Text "Snippet" that automatically adds "end" when creating an "if" or function? I noticed that the Ruby instructor has it, but I can't seem to find it anywhere on line....
1 Answer
Scott Magdalein
2,406 PointsNot sure if this is what you mean, but try typing "if" and then hit return. Same for "def" and then return for a method.
If you want to see more snippets, just type command+shift+p and start typing "snippet" to see a list of available snippets.
Colin Stodd
3,160 PointsColin Stodd
3,160 PointsBingo!!! Thanks a million Scott! It was indeed already included. I've just been rushing to type my "def" and "if"'s and would miss the auto complete (Hitting Enter). Thanks again!
Scott Magdalein
2,406 PointsScott Magdalein
2,406 PointsMy pleasure. :)