Editor/VSC
VSC에서 Chrome으로 실행하기
피고녀
2020. 2. 23. 15:13
javacript 파일을 선택한 후 ctrl+shift+P 를 누르고 configure task
create task.json file from template
MSBuild 선택
tasks.json 파일이 만들어진다.
아래의 내용으로 변경해 준다.
{
"version": "2.0.0",
"tasks": [
{
"taskName": "chrome",
"type": "process",
"command": "chrome.exe",
"windows": {
"command": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
},
"args": [
"${file}"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
html 파일을 열어 ctrl+shift+B 누르시면 크롬이 열리면서 html이 실행된다.