0

so normally you can use the following to create a Build System:

{
    "cmd": ["C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe","$file"]
}

With edge, however, you can't simply start it up by double clicking the .exe found at the path

C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe

Which means this doesn't work (i tried this):

{
    "cmd": ["C:\\Windows\\SystemApps\\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\\MicrosoftEdge.exe","$file"]
}

Is there a way to create a Sublime Text Build System so that when you hit Ctrl+B the file opens up in Microsoft Edge?

MattDMo
  • 100,794
  • 21
  • 241
  • 231
David Torrey
  • 1,335
  • 3
  • 20
  • 43

2 Answers2

0

The following should work (from here):

{
    "cmd": ["start microsoft-edge:file:///$file"]
}

Unfortunately I don't have Windows 10 handy to test this, but from the above link and other Google results this should be the way to go.

Community
  • 1
  • 1
MattDMo
  • 100,794
  • 21
  • 241
  • 231
0

figured it out finally:

{
    "cmd": ["explorer.exe", "microsoft-edge:$file"]
}
David Torrey
  • 1,335
  • 3
  • 20
  • 43