# CodeFormatter **Repository Path**: wljcom/CodeFormatter ## Basic Information - **Project Name**: CodeFormatter - **Description**: vim格式化代码插件:借助astyle对源码文件进行格式化,支持c,c++,java,c#等 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 6 - **Created**: 2016-04-09 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #CodeFormatter ### 插件作用 - 个人因为无法习惯各种代码风格,因此写了个插件格式化vim当前编辑的代码文件(当前转换的代码风格是个人习惯的风格,如不习惯可自行修改,参照astyle工具的参数说明) ### 安装准备 - 此插件依赖astyle工具,使用插件前需要正确安装astyle ### 安装astyle工具 **1. Mac** - brew install astyle **2. windows** - 下载astyle安装,并把astyle的路径加到系统环境变量Path中 ### Vim安装CodeFormatter **1.用Bundle安装** - 添加Bundle 'http://git.oschina.net/qiuchangjie/CodeFormatter'到.vimrc文件(windows是_vimrc),然后输入BundleInstall命令安装 **2.用Plug安装** - 添加Plug 'http://git.oschina.net/qiuchangjie/CodeFormatter'到.vimrc文件(windows是_vimrc),然后输入PlugInstall命令安装 ### 插件使用说明 - 在vim中按顺序输入三个字符 \cf 执行格式化操作