zoukankan      html  css  js  c++  java
  • VS2005插件,自动对齐赋值等号与注释

    为了代码看起来更整齐,就希望能把赋值等号和单行注释对齐,VS2005好像没有这个功能,干脆自己动手写一个算了。

    注意事项:

    适用于VS2005中文版,VS2008没有测试。VS2005英文版下貌似不能加载,好像是一个VS2005安装sp1后的bug吧,我还没搞清楚。

    要使用等宽字体,比如新宋体。VS2005环境设置,字体选择框中显示为粗体的是等宽字体。

    安装方法

    Steps to Install CodeFormater Add-In for Visual Studio 2005
    --------------------------------------------------------

    1. Close all instances of Visual Studio 2005.

    2. Copy the .addin and .dll files to your Addins directory (usually C:\Documents and Settings\[User]\My Documents\Visual Studio 2005\Addins).
       If you do not have an Addins directory, create it under your "Visual Studio 2005 "directory.

    3. That's it. The next time you open Visual Studio 2005 the CodeFormater add-in will be available.

    1。关闭所有的VS2005实例。

    2。拷贝.addin 和.dll文件到Addins目录。通常是C:\Documents and Settings\[User]\My Documents\Visual Studio 2005\Addins

    3。可以了,下次在运行VS2005,你就会发现“工具”下面多了两个“CodeFormater”和“InserDateTime”

    使用方法:

    选中要进行格式化的代码段,点“工具”--〉“CodeFormater”,即可。

    tool

    格式整理前:

    before

     

    格式整理后:

    after

    大家试用一下,有什么意见和建议,可以给我回复或留言。

    以后会加上右键菜单功能,这个还没弄好:)并且会把编写过程写出来,呵呵


     下载:

    CodeFormater.zip 10KB 0 2008/4/7 20:48:19 Download

    源码下载:

    CodeFormater_src.rar 45KB 0 2008/4/9 21:26:03 Download


    制作过程:
    http://www.cnblogs.com/junqilian/archive/2008/04/09/1145733.html
     

    作者:峻祁连
    邮箱:junqilian@163.com
    出处:http://junqilian.cnblogs.com
    转载请保留此信息。
  • 相关阅读:
    C
    A
    L
    G
    关于html()、val()、text()
    EL表达式
    JSON书写格式示例
    Servlet获取项目名的方法
    修改完Servlet后不用重启项目的设置方法
    浮动
  • 原文地址:https://www.cnblogs.com/junqilian/p/1140963.html
Copyright © 2011-2022 走看看