V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
sconfield
V2EX  ›  问与答

sublime text 中编辑 js 的时候输入 ‘if’ 会自动转换为 ‘if (true) {};’ 对于 ‘;’ 我没法留她,怎么办?

  •  
  •   sconfield · Feb 20, 2014 · 3558 views
    This topic created in 4456 days ago, the information mentioned may be changed or developed.
    我有强迫症,每次都会去删除 sublime text 自动生成的 ';' 。有什么方式可以自定义一下啊,将模板中的 ';' 去掉?
    ![if-1](http://p2.zhimg.com/99/d4/99d42bdff467c5629eb077eeca55bdd9_r.jpg)
    ![if-2](http://p3.zhimg.com/b6/56/b65677825da8514aa3ab63549e7f2159_r.jpg)
    3 replies    1970-01-01 08:00:00 +08:00
    123123
        1
    123123  
       Feb 20, 2014
    momou
        2
    momou  
       Feb 20, 2014
    C:\Users\yourname\AppData\Roaming\Sublime Text 2\Packages\JavaScript\if.sublime-snippet
    编辑这个文件
    sconfield
        3
    sconfield  
    OP
       Feb 21, 2014
    @123123
    @momou
    3确实不好处理,更新就覆盖了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2712 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.