Author Topic: A quicker way to add new files  (Read 2442 times)

Offline marmistrz

  • Multiple posting newcomer
  • *
  • Posts: 18
A quicker way to add new files
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: A quicker way to add new files
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: A quicker way to add new files
« Reply #2 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

Offline marmistrz

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: A quicker way to add new files
« Reply #3 on: April 04, 2016, 09:26:32 pm »
Thanks you both!!