0

First of all its not duplicated because I have checked this link first, but it's unrelated. I have just started using vscode. It very complicated even more if you have poor english like me .I have searched for related videos on youtube .But they are for mac, mostly .I am using windows so..

I have follwed theese steps

Tasks->ConfigureBuildTasks and then added theese lines .This is how tasks.json file looks like .

{

    "version": "2.0.0",
    "tasks": [
        {

            "version": "0.1.0",

            "command": "chrome",

            "windows": {

                "command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"

            },

        "args": ["localhost\\${workspaceRootFolderName}\\${fileBasename}"]

        }
    ]
}

So..there is no shorcut .. I have no idea how to launch a php file on browser.Any shortcut or key binding

Álvaro González
  • 142,137
  • 41
  • 261
  • 360
  • 1
    Do you need to open the file for display-purpose, or only "invoke" it, i.e. have it's php-script executed? For just "invoking" it, I recommend a tiny powershell-call, like this: `powershell.exe -Command "(New-Object Net.WebClient).DownloadString('http://localhost/fileToExecute.php')"` – dognose Aug 21 '18 at 19:50
  • thank you for letting me know this powershell thing.I am new to programming but ı will check this out But ı am really obssesed with this shortcut :)) – abuzer kadayıf Aug 21 '18 at 20:04
  • Do you mean the task runs fine from "Tasks/ Run Task..." menu and your only issue is to assign a keyboard short-cut? – Álvaro González Aug 22 '18 at 15:27
  • I think so ::) why is that – abuzer kadayıf Aug 22 '18 at 21:21

0 Answers0