Sublime Forum

Make single-quote the default on snippets

#1

In a ruby file, when I enter req and press tab for completion, I get require “” with the caret inside the double quotes.

I would like req to expand to require ‘’ (single quotes) instead.

Is there a master setting I can set to have all snippet expansions give me single quotes vs double quotes?

I’ve played around with creating my own snippets, like reqs that expands to require ‘’, but that seems like a poor way to manage the problem.

Any ideas? Am I missing something really obvious?

0 Likes

#2

You will have to change the snippet that is behind that one.

Open your packages folder (Preferences -> browse packages), then open the Ruby folder and look for a file called require-…-(req).sublime-snippet. Swap out the quotes and you are off to the races!

0 Likes

#3

Thanks

0 Likes