Reputation: 1583
I am looking for yasnippets (for emacs) like C++ code snippets feature in Jetbrains Clion.
How to get this in Jetbrains Clion?
Some example snippets from yasnippets in emacs (to give an idea of what I am looking for):
main:
int main(int argc, char *argv[]) {
return 0;
}
for-loop:
for (i = 0; i < N; i++){
}
Upvotes: 1
Views: 4297
Reputation: 2069
Please, read about live template and blog record. Seems it is exactly that you need. We already have [for-loop] live template. There are really two: [for]/[iter]. Please, try with complition!
int main(int argc, char *argv[]) {
for<Ctrl+Space or choose from drop-down list>
}
=>
int main(int argc, char *argv[]) {
for (int i = 0; i < ; ++i) {
}
}
Upvotes: 2