I'm trying to make a sublime file, either with keywords or completions or something similar to that so when I press enter, I'm moved a line down, but also I have an extra colon : at the beginning of the new line.
So when I'm typing code, I can finish up the line I'm on, then press enter, and begin with a line like this
:code
:code [press enter]
:[cursor is here]
How do I go about to making this? I have a sublime-completions file that uses "keyword" and "contents" and I want it to be similar to that, like "keys": "[enter]" and when I press enter the next line "contents" is a colon(:)?
I know there is easier ways to do this such as higlighting the text and placing the cursors at the beginning of every line but my specific situation is asking for me to have every line already finished so after I finish typing then I don't have to go back and modify anything at all.