配置vim后,选中需要对其的代码,按=键;
相关配置可以参考:
【显示行号】—>【set number】;
【检测文件的类型】—>【filetype on】;
【自动对齐】—>【set autoindent】
【智能选择对齐方式】—>【set smartindent】
【设置Tab键为4个空格】—>【set tabstop=4】
【设置当行之间交错时使用4个空格】—>【set shiftwidth=4】
【设置匹配模式】—>【set showmatch】;
在vim编辑器中怎么使不齐的代码对齐
最新推荐文章于 2024-05-24 15:23:35 发布