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

如何使用命令行"sublime index.php"来用sublime打开index.php文件?

  •  
  •   Glow · Dec 26, 2012 · 4728 views
    This topic created in 4878 days ago, the information mentioned may be changed or developed.
    网上流行的一个自动修改hosts的bat文件中有一行这个:

    notepad "%SystemRoot%\system32\drivers\etc\hosts"

    自动用本地记事本打开了hosts文件,请问该怎么设置才能用sublime打开它?
    3 replies    1970-01-01 08:00:00 +08:00
    gucheen
        1
    gucheen  
       Dec 26, 2012
    将 sublime 添加到环境变量试试看
    Glow
        2
    Glow  
    OP
       Dec 26, 2012
    @gucheen
    我用的是 "C:\Program Files\Sublime Text 2\sublime_text.exe" index.php 来解决的,没用环境变量
    siw
        3
    siw  
       Dec 26, 2012
    @Glow
    所以你想问什么?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   913 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 18:31 · PVG 02:31 · LAX 11:31 · JFK 14:31
    ♥ Do have faith in what you're doing.