Linux C编程的IDE设置

来源:互联网 发布:大华监视器软件下载 编辑:程序博客网 时间:2024/05/22 00:14

1 、csupport插件

3 Steps to Install the C.Vim Plugin

Step 1: Download C Vim Plugin

Download the plugin from vim.org website.

$ cd /usr/src$ wget http://www.vim.org/scripts/download_script.php?src_id=9679

Step 2: Install the C Vim Plugin

$ mkdir ~/.vim$ cd ~/.vim$ unzip /usr/src/cvim.zip

Step 3: Enable the plugin in the ~/.vimrc

Add the following line to the ~/.vimrc to enable the plugin for Vim editor.

$ vim ~/.vimrcfiletype plugin on

To change the default value of the AUTHOR and COMPANY, modify the default value in ~/.vim/c-support/templates/Templates

$ vim ~/.vim/c-support/templates/Templates|AUTHOR|    = geekstuff|AUTHORREF| = gk|EMAIL|     = subscribe@geekstuff|COMPANY|   = thegeekstuff.com

Feature 5: Add a Frame comment using \cfr

To add a frame comment, type \cfr in normal mode, which will give the following formatted comment.

2、DoxygenToolkit.vim

install detailsCopy to your '~/.vim/plugin' directory

在 ~/.vimrc增加配置

 - When you define: 
        g:DoxygenToolkit_briefTag_pre = "@brief " 
        g:DoxygenToolkit_briefTag_post = "<++>" 
        g:DoxygenToolkit_briefTag_funcName = "yes" 
     Documentation generated with these parameters is something like: 
        /// @brief foo <++> 
     You can configure similarly parameters to get something like: 
        /// @brief foo <++> 
        /// @param bar <++> 
        /// @param baz <++>

分别使用Dox、DoxLic、DoxAuthor生成函数,版权授权和作者注释模板。


0 0