Author Topic: Comment header?  (Read 7786 times)

Offline lyrklaunavan

  • Single posting newcomer
  • *
  • Posts: 3
Comment header?
« 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

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Comment header?
« Reply #1 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

Offline lyrklaunavan

  • Single posting newcomer
  • *
  • Posts: 3
Re: Comment header?
« Reply #2 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Comment header?
« Reply #3 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Comment header?
« Reply #4 on: February 19, 2013, 10:07:38 am »
Another option is to setup an abbreviation
(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 lyrklaunavan

  • Single posting newcomer
  • *
  • Posts: 3
Re: Comment header?
« Reply #5 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

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