Vscode-code-runner: ๋ธŒ๋ผ์šฐ์ €์—์„œ html ์—ด๊ธฐ(๋˜๋Š” ๋ช…๋ น ์‚ฌ์šฉ)

์— ๋งŒ๋“  2016๋…„ 11์›” 07์ผ  ยท  4์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: formulahendry/vscode-code-runner

์•ˆ๋…•ํ•˜์„ธ์š”, ๋งค์šฐ ๊น”๋”ํ•œ ํ™•์žฅ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

Chrome์—์„œ html ํŒŒ์ผ์„ ์—ด๋„๋ก Code Runner๋ฅผ ๊ตฌ์„ฑํ•˜๋ ค๊ณ  ํ–ˆ์ง€๋งŒ ์ž‘๋™ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

๊ตฌ์„ฑ:

"code-runner.executorMap": {
    "javascript": "node"
},
"code-runner.defaultLanguage": "javascript",
"code-runner.clearPreviousOutput": true,
"code-runner.saveFileBeforeRun": false,
"code-runner.executorMapByFileExtension": {
    ".html": "chrome.exe"
}

ํ•˜์ง€๋งŒ ์•„๋ž˜ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

[Running] chrome.exe "d:\angular-directive-demo.html"
'chrome.exe' is not recognized as an internal or external command,
operable program or batch file.

[Done] exited with code=1 in 0.176 seconds

chrome.exe์˜ ์ „์ฒด ๊ฒฝ๋กœ๋„ ์ œ๊ณตํ–ˆ์ง€๋งŒ ๋™์ผํ•œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.

์ž„์˜์˜ ๋ช…๋ น/exe๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๋ฐฉ๋ฒ•์ด ์žˆ์Šต๋‹ˆ๊นŒ?

์ฝ”๋“œ ๋Ÿฌ๋„ˆ: 0.4.1
VS์ฝ”๋“œ: 1.7.1
์œˆ๋„์šฐ 8.1

๊ฐ์‚ฌ ํ•ด์š”.

question

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

์•ˆ๋…•ํ•˜์„ธ์š” @manikantag , ์ €๋Š” ์•„๋ž˜ ๊ตฌ์„ฑ์„ ์‚ฌ์šฉํ•˜๊ณ  ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

"code-runner.executorMapByFileExtension": {
    ".html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\""
}

์‚ฐ์ถœ:

[Running] "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "d:\Try\test\test.html"

[Done] exited with code=0 in 0.252 seconds

๋ฐฑ์Šฌ๋ž˜์‹œ์™€ ํŒŒ์ผ ๊ฒฝ๋กœ์˜ ๊ณต๋ฐฑ์„ ์ฒ˜๋ฆฌํ–ˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

๋ชจ๋“  4 ๋Œ“๊ธ€

์•ˆ๋…•ํ•˜์„ธ์š” @manikantag , ์ €๋Š” ์•„๋ž˜ ๊ตฌ์„ฑ์„ ์‚ฌ์šฉํ•˜๊ณ  ์ž‘๋™ํ•ฉ๋‹ˆ๋‹ค.

"code-runner.executorMapByFileExtension": {
    ".html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\""
}

์‚ฐ์ถœ:

[Running] "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "d:\Try\test\test.html"

[Done] exited with code=0 in 0.252 seconds

๋ฐฑ์Šฌ๋ž˜์‹œ์™€ ํŒŒ์ผ ๊ฒฝ๋กœ์˜ ๊ณต๋ฐฑ์„ ์ฒ˜๋ฆฌํ–ˆ๋Š”์ง€ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

์ž‘์—…์„ @formulahendry ๐Ÿ‘

๋ชจ๋“  ๋ฐฑ ์Šฌ๋ž˜์‹œ๋ฅผ ์‹œ๋„ํ•˜๊ณ  ์ด์Šค์ผ€์ดํ”„ํ–ˆ์ง€๋งŒ ์ „์ฒด ๊ฒฝ๋กœ๋ฅผ ํฐ ๋”ฐ์˜ดํ‘œ๋กœ ๋‹ค์‹œ ์ธ์šฉํ•˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ๊ฐ์‚ฌ ํ•ด์š”.

๋ฌธ์„œํ™”๋˜์—ˆ์Šต๋‹ˆ๊นŒ? ์•„๋‹ˆ๋ฉด, ๋‚ด๊ฐ€ ๋†“์ณค๋‚˜์š”? ๊ทธ๋ ‡์ง€ ์•Š์€ ๊ฒฝ์šฐ VSCode ํ™•์žฅ readme์—์„œ ๋ณผ ์ˆ˜ ์žˆ๋„๋ก ๋ฌธ์„œํ™”ํ•˜๋Š” ๊ฒƒ์ด ์ข‹์Šต๋‹ˆ๋‹ค.

https://github.com/formulahendry/vscode-code-runner#configuration ์— ruby โ€‹โ€‹๋ฐ php์šฉ ์ธํ„ฐํ”„๋ฆฌํ„ฐ PATH๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ์ƒ˜ํ”Œ์ด ์žˆ์ง€๋งŒ ๋ฐฑ์Šฌ๋ž˜์‹œ์™€ ๊ณต๋ฐฑ์„ ์ฒ˜๋ฆฌํ•˜๊ธฐ ์œ„ํ•ด ์ž์„ธํ•œ ๋‚ด์šฉ์„ ์ถ”๊ฐ€ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ํŒŒ์ผ ๊ฒฝ๋กœ . #28

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰