Linux C编程的IDE设置

本文介绍了如何安装并配置C.Vim插件和Doxygen Toolkit.vim,包括下载、安装步骤及在Vim编辑器中启用插件的方法。同时,提供了自定义设置和使用技巧,帮助开发者高效地进行代码注释和文档生成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 ~/.vimrc
filetype 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 details
Copy 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生成函数,版权授权和作者注释模板。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值