Is their is any way so that a particular comment should appear in every cpp file?
-
I have a particular format of comment i want to set that comment should appear in the beginning of every .cpp file i create. How can i do that?
-
Looking for a creator specific way (AFAIK : none!) ?
And why copy-paste is so difficult?
-
You can go to Tools -> Options -> Text Editor -> Snippets. Create a new snippet with your comment.
To insert it into a file just type the name of your snippet and press Ctrl+Space (or whatever shortcut you set for code completion). Voila, your comment is inserted. -
@p-himik : that was new to me.. thanks :) :)
-
Also you can create a licence template but Qt Creator will insert it into .h files too.
Go to Tools -> Options -> C++ -> File Naming. Select there a file with your comment. -
Thank you Mr. p-himik
-
Rahul Das, pratik041, you are welcome. Don't afraid to shin in the Options :) There are many interesting features.
-
:) :) No one is afraid.. But, yeah, its good to explore the tool.. Its just that, some like me are addicted to command line !!
-
ya you are right but sometime asking question makes the thing more clear and you will be able to know new things what by mistake sometime missed.
-
I used also a small perl script to apply a license file at the beginning of each project file if I forgot to do from the beginning of the project.