moxuanyuan
V2EX  ›  问与答

如何解决 Sublime Text 3 无法打开文件名有空格的文件?

  •  
  •   moxuanyuan · Dec 26, 2014 · 4728 views
    This topic created in 4194 days ago, the information mentioned may be changed or developed.
    偶刚开始用Sublime Text 3 Build 3065 Windows 64 bit portable version ,刚刚用就发现问题,ST3无法正常打开文件名有空格的文件,例如"a b.txt",会变成打开两个文件"a"和"b.txt",都是空的没有内容。

    
    4 replies    2014-12-26 19:00:00 +08:00
    timonwong
        1
    timonwong  
       Dec 26, 2014   ❤️ 1
    关联有问题而已,不知道你怎么弄的,参数请包裹 double quotes
    LazyZhu
        2
    LazyZhu  
       Dec 26, 2014
    注册表里面改一下关联参数 %1 -> \"%1\"
    jacob
        3
    jacob  
       Dec 26, 2014
    win 8.1 st3 portable 没问题啊. 实在不行,换atom得了.也有点小问题.但是也不错.
    moxuanyuan
        4
    moxuanyuan  
    OP
       Dec 26, 2014
    @timonwong 谢谢提醒,double quotes后没有问题了……之前用notepad++没有double quotes也正常打开,但换成sublime text后就不行,要加 double quotes
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2503 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:21 · PVG 10:21 · LAX 19:21 · JFK 22:21
    ♥ Do have faith in what you're doing.