Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: lyrklaunavan on February 18, 2013, 11:46:45 pm

Title: Comment header?
Post by: lyrklaunavan on February 18, 2013, 11:46:45 pm
I was using DevC++. It had a option under EDIT/INSERT/COMMENT HEADER to add comment header automatically. I switched to Code::Blocks. Does Code::Blocks have this option? I am searching internet but could not find any info on how to do that.

Thanks
Title: Re: Comment header?
Post by: scarphin on February 19, 2013, 12:53:23 am
Are you trying to comment selected line(s)?
=> ctrl-shift-c to comment
=> ctrl-shift-x to uncomment
Title: Re: Comment header?
Post by: lyrklaunavan on February 19, 2013, 09:09:23 am
Are you trying to comment selected line(s)?
=> ctrl-shift-c to comment
=> ctrl-shift-x to uncomment


What I mean is before any program it automatically stamps creation time of program, name, and other details like

//Program Name:
//Date:
//Author:
//Version

automatically in DEVC++ by EDIT/INSERT/COMMENT HEADER.

I wanted to ask if Code::Blocks has a similar functionaliity?
Title: Re: Comment header?
Post by: Jenna on February 19, 2013, 09:26:17 am
I wanted to ask if Code::Blocks has a similar functionaliity?

There is a similar function, but only for new empty files: http://forums.codeblocks.org/index.php/topic,16058.msg108388.html#msg108388 (http://forums.codeblocks.org/index.php/topic,16058.msg108388.html#msg108388)
Title: Re: Comment header?
Post by: oBFusCATed on February 19, 2013, 10:07:38 am
Another option is to setup an abbreviation
Title: Re: Comment header?
Post by: lyrklaunavan on February 19, 2013, 11:12:18 am
I wanted to ask if Code::Blocks has a similar functionaliity?

There is a similar function, but only for new empty files: http://forums.codeblocks.org/index.php/topic,16058.msg108388.html#msg108388 (http://forums.codeblocks.org/index.php/topic,16058.msg108388.html#msg108388)

Thanks so much
I will try when I get to home.