代码之家  ›  专栏  ›  技术社区  ›  Klaus

VC++在C++中停止注释内部冒号

  •  2
  • Klaus  · 技术社区  · 7 年前

    如何停止用VIM在C++源代码中冒号的缩进更改?

    例子:

    class X
    {
        public:
            /*
               Some comment here
    TODO: make it better...
    */
            void f() {}
    };
    

    应该是:

    class X
    {
        public:
            /*
               Some comment here
               TODO: make it better...
               */
            void f() {}
    };
    
    0 回复  |  直到 7 年前