C++ Live Templates -> Edit variables

Answered

For several versions, since the announcement of Nova, Live Templates in CLion has been broken in one way or another. One of the big things that's missing (see right image) is the ability to edit the Expression, Default value, and check “Skip if defined.” This works for (ironically) “Other Languages” but not for the one language I use CLion for, which is C++. The documentation on how this should work is here:

https://www.jetbrains.com/help/clion/template-variables.html

I'm on Ubuntu 20 and am using the ReSharper (Nova) engine:

https://www.jetbrains.com/help/clion/clion-nova-introduction.html#switch-to-nova

Any help would be appreciated.

0
3 comments

My current work-around is to uncheck the ReSharper (Nova) engine:

This brings back the classic list of templates, with C/C++ in the same tree as other languages, and the Edit Template Variables dialog works:

Nova brings new Live Templates:

https://www.jetbrains.com/help/clion/clion-nova-introduction.html#nova-new-functions

But my existing workflow is so critical I need feature parity (existing features need to work as good or better) before I can switch over to Nova.

0

And what is this message appearing, “Post is pending approval”? I'm logged in with a paid subscription account.

0

Hello!

Here is the related issue in our tracker - CPP-39529. Feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

The author of the issue mentioned the following workaround: “When I changed the mnemonic for the template, the changes for variables also applied”. You can try using it.

Sorry for the inconvenience. 

0

Please sign in to leave a comment.