Meaning of Visual placeholders on default snippets
Asked by
mMontu
What is the purpose of the visual placeholder on the default snippets?
For example, the snippet below, from ultisnips / UltiSnips / c.snippets
snippet #if "#if #endif" b
#if ${1:0}
${VISUAL}
#endif
endsnippet
, has two visual placeholders and a transformation on the second one.
As far as I understand, it is equivalent to
snippet #if "#if #endif" !b
#if ${1:0}
${0:${VISUAL:code}}
#endif
endsnippet
But if someone get the trouble to write the first, more complex version, it should be due to some good reason that I can't see.
Maybe this was already explained somewhere, but I was unable to find.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- UltiSnips Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- SirVer
- Solved:
- Last query:
- Last reply:
To post a message you must log in.