how to change atom-live-server default browser

Does anyone have experience changing the default browser for atom-live-server? The documentation says to add, {"browser" : "browser-name"}, to atom-live-server.json. I did that and the default live server browser did not change from Chrome which is my default browser for macos 10.14.1. Here is the atom-live-server.json file, but it didn't work.

{
  "atom-workspace": {
    "ctrl-alt-3": "atom-live-server:start-3000",
    "ctrl-alt-4": "atom-live-server:start-4000",
    "ctrl-alt-5": "atom-live-server:start-5000",
    "ctrl-alt-8": "atom-live-server:start-8000",
    "ctrl-alt-9": "atom-live-server:start-9000",
    "ctrl-alt-l": "atom-live-server:startServer",
    "ctrl-alt-q": "atom-live-server:stopServer"
  }
  {
     "browser" : "Firefox"
  }
}

Does atom-live-server always use the macos default browser so you can't actually change it?

Thanks for your help.


It looks like this is caused by a simple syntax error in your JSON file. You need to separate keys with a comma. Your file should look like the following (note the comma on line 10):

{
  "atom-workspace": {
    "ctrl-alt-3": "atom-live-server:start-3000",
    "ctrl-alt-4": "atom-live-server:start-4000",
    "ctrl-alt-5": "atom-live-server:start-5000",
    "ctrl-alt-8": "atom-live-server:start-8000",
    "ctrl-alt-9": "atom-live-server:start-9000",
    "ctrl-alt-l": "atom-live-server:startServer",
    "ctrl-alt-q": "atom-live-server:stopServer"
  },
  {
     "browser" : "Firefox"
  }
}

Configure the Atom live server to use Chrome, As you edit your web project files, "Live reload" looks for changes and updates Atom Live Duration: 8:48 Posted: 14 Feb 2019 Atom Live Server will use your default system browser, but in many cases that might not be the browser you want to work with. The Live server supports a project by project configuration option.


I think you just need to put the following code in your .atom-live-server.json file. This file should be in your project folder.

{
  "browser" : "Firefox"
}

It works on my windows 7 system. The first few lines seem to make things worse. I don't know why.

Configure Atom Live Server to use the Chrome browser, It covers the basics of the Atom Live Server and specifically shows the Chrome browser Duration: 8:48 Posted: 14 Feb 2019 To use a browser other than your system default, you need an .atom-live-server.json file in your index.html root directory. Specify the browser in the .atom-live-server.json file with the browser parameter.


I think you've solved somehow, but I wrote this answer because I got in same situation. (I work on Mac OS Mojave)

I did the same way Bill Zhao said.

Create a json file .atom-live-server.json in project file, and put

{
  "browser":"Firefox(or firefox)"
}

It's working for me. July 6 2019

atom-live-server, The keys of .atom-live-server.json should match Command line parameters in live-server. Example: Launch specific browser. I have Chrome set as my default browser, but live-server opens in firefox. I would also like to have the ability to open in a different browser. This comment has been minimized.


how to change atom-live-server browser to Chrome? · Issue #219 , to atom-live-server it opens Firefox (I don't use) instead I wanted to use Chrome browser. Can someone help me how to change the default  If a file .atom-live-server.json exists in project root it will be loaded and used as options. The keys of .atom-live-server.json should match Command line parameters in live-server . Example: Launch specific browser


I need to change the default browser · Issue #119 · jas-chen/atom , I have live server installed, and I chose safari as the browser. JavaScript prompts are not working and the same code is working for online test  Live preview directly in browser from Atom. 2: Let's Create Our First HTML Project and Document | Learn HTML and CSS | HTML Tutorial - Duration: 11:00. mmtuts 228,738 views


how to change atom-live-server default browser, I did that and the default live server browser did not change from Chrome which is my default browser for macos 10.14.1. Here is the atom-live-server.json file,  Change your default browser in Windows 10. Select the Start button, and then type Default apps . In the search results, select Default apps . Under Web browser , select the browser currently listed, and then select Microsoft Edge or another browser.