Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: marmistrz on April 01, 2016, 12:05:56 pm

Title: A quicker way to add new files
Post by: marmistrz on April 01, 2016, 12:05:56 pm
I'm using Code::Blocks 16.0.1. Now, when I'd like to add a new C source file I have to navigate using my mouse a lot: go to the file submenu, select File, select C/C++ source, select the directory to create it in - too much mouse usage!!

Is there any way to do it more quickly? I'd rather right click on the destination directory, to add the file there, for example.

Still, I'd like to get a template with the include guards
Title: Re: A quicker way to add new files
Post by: oBFusCATed on April 01, 2016, 07:21:38 pm
I do it with Ctrl-Shift-N and just navigate to the folder/directory where I want to save the file.
Title: Re: A quicker way to add new files
Post by: BlueHazzard on April 02, 2016, 02:39:02 pm
For the guards you can simply type "guard" and press ctrl+J then c::b will add a guard block for you.

For more you can look in "settings->editor->abbreviations"

greetings
Title: Re: A quicker way to add new files
Post by: marmistrz on April 04, 2016, 09:26:32 pm
Thanks you both!!