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++){
}
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) {
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.