live.server will not work in visual studio

  • Thread starter Thread starter Klauwaart
  • Start date Start date
K

Klauwaart

Guest
Hello,

My setup is as follows:


Version: 1.44.2 (user setup)

Commit: ff915844119ce9485abfe8aa9076ec76b5300ddd

Date: 2020-04-16T16:36:23.138Z

Electron: 7.1.11

Chrome: 78.0.3904.130

Node.js: 12.8.1

V8: 7.8.279.23-electron.0

OS: Windows_NT x64 10.0.18363


I want to be able to preview PHP pages, and I use XAMPP as my server software.

For setting up my server, the settings file refers me to settings.json, so here is how I altered the file:


{

"window.zoomLevel": 1,
"php-cs-fixer.formatHtml": true,
"php-cs-fixer.onsave": true,
/*"
PHP:
": {
        "editor.defaultFormatter": "vscode.configuration-editing",
    },
    "php-cs-fixer.executablePath": "${extensionPath}\\php-cs-fixer.phar",
    "phpcs.executablePath": "",
    "phpcs.standard": "C:/xampp/php/pear/PHP/CodeSniffer/Standards",*/
    "open-in-browser.default": "C:/Users/frank/AppData/Local/Blisk/Application/blisk.exe",
    "php.executablePath": "C:\\Users\\frank\\AppData\\Local\\Blisk\\Application\\blisk.exe",
    "php-cs-fixer.lastDownload": 1587570493036,
    "phpserver.browser": "Blisk",
    "phpserver.port": 8000,
    "phpserver.phpPath": "C:/xampp/php",
    "phpserver.relativePath": ".C:/xampp/htdocs",
    "open-php-html-js-in-browser.selectedBrowser": "",
    "open-php-html-js-in-browser.customBrowserPath": "C://Users//frank//AppData//Local//Blisk//Application//blisk.exe",
    "open-php-html-js-in-browser.documentRootFolder": "C:/xampp/htdocs",
    "open-php-html-js-in-browser.urlToOpen": "http://localhost",
    "open-php-html-js-in-browser.customUrlToOpen": "http://:8000/${relativeDirnameDocumentRoot}/${fileBasename}",
    "liveServer.settings.donotShowInfoMsg": true,
    "liveServer.settings.AdvanceCustomBrowserCmdLine": "C:/Users/frank/AppData/Local/Blisk/Application/blisk.exe",
    "liveServer.settings.host": "localhost",
    "liveServer.settings.fullReload": true,
    "liveServer.settings.https": {
    "enable": true,
    "liveServer.settings.port": 8000,
    }





I am very confused about how to enter a path, as I have seen it done about three different ways, namely "Z:/folder/file", "C:\folder\file" and "C://folder//file".

I am not sure which one is right and I wonder if that might add to myproblem.

The problem is: when I click "Go live" nothing happens.


I really hope someone can help.

Thank you in advance.

[url="https://social.msdn.microsoft.com/Forums/en-US/39bc4d45-f212-4681-877f-e7fa350a7e4a/liveserver-will-not-work-in-visual-studio?forum=visualstudiogeneral"]Continue reading...[/url]
 
Back
Top