User forums > Using Code::Blocks

Help - Add pre-defined function/file description by shortcut key

(1/2) > >>

eraser:
I need this feature in Code::Blocks edit environment. It maybe like this:

   // File Name: Current file.cc
   // Description: [blank]
   
   #include .....
   ...
   
   // Function Name: myFun
   // Description: [blank]
   // input1: int
   // input2: char
   // output: void
   void myFun(int input1, char input2) {
   ...
   }

I hope the BLUE part, which style is defined in advance and can acquire the FILENAME and function declaration, is inserted automatically by a shortcut key. Does anyone has a solution?  A similar implementation can also be accepted. Thanks.

ollydbg:

--- Quote ---I hope the BLUE part, which style is defined in advance and can acquire the FILENAME and function declaration, is inserted automatically by a shortcut key.
--- End quote ---

Ha, this function should be implemented in CodeCompletion plugin. Because the CC can understand where your current caret is. This is the same feature as the CC's ToolBar( in Which, when you caret moved, the Toolbar information get updated too).

It can be regard as a "feature request".  :D

eraser:
I took a look at the configuration of CodeCompletion plugin in "Settings"->"Editor"->"Code-completion and symbols browser". I couldn't find the appropriate options. So, can you teach me hand by hand how to realize this feature? Thank you very much.

ollydbg:

--- Quote from: eraser on May 21, 2010, 10:44:29 am ---can you teach me hand by hand how to realize this feature? Thank you very much.

--- End quote ---
Well, If you want to implement this function, you should dig into the source code of "CodeCompletion plugin", this is the only way if you want to implement this function. If you really want to do that, I can give more advice.

Jenna:
The second can be done with the DoxyBlocks-plugin : http://forums.codeblocks.org/index.php/topic,12052.msg85232.html#msg85232,
the first is not implemented (as far as I know), but should not be too hard to do.

Navigation

[0] Message Index

[#] Next page

Go to full version