Answer the question
In order to leave comments, you need to log in
How to convert the entered characters to uppercase in the snippet?
There is a snippet for inserting an include guard (c++).
<snippet>
<description>Include guard</description>
<content><![CDATA[#ifndef INCLUDEGUARD_${1}
#define INCLUDEGUARD_${1/(.+)/\U\1/g}
$0
#endif /* #ifndef INCLUDEGUARD_${1/(.+)/\U\1/g} */
]]></content>
<tabTrigger>iguard</tabTrigger>
<scope>source.c++, source.objc++</scope>
</snippet>
Answer the question
In order to leave comments, you need to log in
It looks like there is no way to implement this by standard means. And you are not the first person to face this problem . However, the editor's support is silent on this issue and has been silent for a long time . So I'm afraid you'll have to use caps lock or ctrl+k ctrl+u for now. I noticed that in some cases an auto-complete appears, by choosing which (by pressing Enter) the line takes the form of an uppercase line, but to be honest, I didn’t manage to do something normal with this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question