Ⅰ. 插件描述
Automates creation of /// comments for C# methodsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/cscomment-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/cscomment-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/cscomment-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/cscomment.vim
Ⅳ. 文档说明
This script will generate the /// comment blocks for csharp for methods and constructors. Simply place the cursor anywhere on the first line of the function prototype and hit <c-t>. It also works on properties, constructors and classes.
Adds summary, remarks, params (for all the params in the function), value (if its a property), and returns (if the function returns something.)
While in comment mode you can tab and shift-tab through the tags, and return and backspace work as they should (enter inserts /// on the new line and backspace erases /// in one bs)
You can get back into comment mode by hitting <c-t> on an existing doc comment.
Questions, comments, concerns, bugs, ideas, etc, drop me an email.