V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
moxuanyuan
V2EX  ›  问与答

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

  •  
  •   moxuanyuan · 2014-12-26 17:44:43 +08:00 · 4117 次点击
    这是一个创建于 3409 天前的主题,其中的信息可能已经有所发展或是发生改变。
    偶刚开始用Sublime Text 3 Build 3065 Windows 64 bit portable version ,刚刚用就发现问题,ST3无法正常打开文件名有空格的文件,例如"a b.txt",会变成打开两个文件"a"和"b.txt",都是空的没有内容。

    
    4 条回复    2014-12-26 19:00:00 +08:00
    timonwong
        1
    timonwong  
       2014-12-26 17:55:38 +08:00   ❤️ 1
    关联有问题而已,不知道你怎么弄的,参数请包裹 double quotes
    LazyZhu
        2
    LazyZhu  
       2014-12-26 17:58:36 +08:00
    注册表里面改一下关联参数 %1 -> \"%1\"
    jacob
        3
    jacob  
       2014-12-26 17:59:20 +08:00
    win 8.1 st3 portable 没问题啊. 实在不行,换atom得了.也有点小问题.但是也不错.
    moxuanyuan
        4
    moxuanyuan  
    OP
       2014-12-26 19:00:00 +08:00
    @timonwong 谢谢提醒,double quotes后没有问题了……之前用notepad++没有double quotes也正常打开,但换成sublime text后就不行,要加 double quotes
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2876 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:25 · PVG 19:25 · LAX 04:25 · JFK 07:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.