peakchen90 / vscode-open-in-default-browser Goto Github PK
View Code? Open in Web Editor NEWOpen In Default Browser
Home Page: https://marketplace.visualstudio.com/items?itemName=peakchen90.open-html-in-browser#overview
License: MIT License
Open In Default Browser
Home Page: https://marketplace.visualstudio.com/items?itemName=peakchen90.open-html-in-browser#overview
License: MIT License
eg:
got: /iconfont.woff2
404: /iconfont.woff2?t=164482714
Bug
open-html-in-browser
2.1.3
Windows_NT ia32 6.1.7601
1.46.1
NetBeans有一个功能,就是可以配置项目服务器URL,然后点击“在浏览器打开”的时候,直接就是服务器路径的文件地址,比如配置服务器路径为:http://localhost:8080,那打开项目中/public/index.php的时候,地址就变成:http://localhost:8080/public/index.php,这样在开发项目时很有用。
Type: Bug
Hey Team,
When attempting to open my HTML document in the default browser, I receive an error message "Open browser failed!! Please check if you have installed the browser correctly". This issue just started yesterday, after a month of working correctly. Any insight on how to resolve the issue?
Thank you,
Extension version: 2.1.9
VS Code version: Code 1.73.0 (Universal) (8fa188b2b301d36553cbc9ce1b0a146ccb93351f, 2022-11-01T15:38:50.881Z)
OS version: Darwin arm64 21.4.0
Modes:
Sandboxed: No
Item | Value |
---|---|
CPUs | Apple M1 (8 x 24) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 2, 2, 2 |
Memory (System) | 8.00GB (0.12GB free) |
Process Argv | --crash-reporter-id 70a9b403-fba1-45df-9f43-3eed8cd16031 |
Screen Reader | no |
VM | 0% |
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
vscccc:30566498
pyindex848:30577860
nodejswelcome1cf:30587006
fc301958:30595537
282f8724:30602487
3d0df643:30602300
dbltrim-control:30603952
打开浏览器发生异常,请重启VSCODE后重试!
Hello!
Please add an option to change its language to english.
Or make it available in two versions. One chinese version and another english version.
Thank you
We have written the needed data into your clipboard because it was too large to send. Please paste.
I get this error why clicking the context menu item to open the HTML file in my default browser:
Create service failed listen EACCES: permission denied 0.0.0.0:52330
clicked on editor to open on default browser (ctrl + 1) but nothing happens, neither on file manager.
VSCODE
Version: 1.32.0
Commit: 507312a3e3b34b084b467dfd983263bc7c9d87e0
Date: 2019-03-06T18:53:01.021Z
Electron: 3.1.3
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.18.0-16-generic
Please define or explain why there is a URL hardcoded into this plugin.
Does it make any remote calls or "phone home"?
It looks to be unused in the code, so maybe it's just a development artifact?
Error while running the extension:
Error: Running the contributed command:'peakchen90.openInBrowser' failed.
at e._executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:697:802)
at e.$executeContributedCommand (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:698:212)
at e._doInvokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:658:87)
at e._invokeHandler (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:657:779)
at e._receiveRequest (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:656:851)
at e._receiveOneMessage (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:656:620)
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:655:544
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:658:673
at /usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:96:599
at e.fire (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:97:917)
at u (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:159:721)
at Socket.<anonymous> (/usr/share/code/resources/app/out/vs/workbench/node/extensionHostProcess.js:159:898)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at readableAddChunk (_stream_readable.js:178:18)
at Socket.Readable.push (_stream_readable.js:136:10)
at Pipe.onread (net.js:560:20)
I don't want it always running on a fixed port. I hope it's something can be configured.
I haven't made any updates to my computer, but my app is no longer working in VSCode (started yesterday). If I try to Command+1 from my mac or right-click and select Open In Default Browser, I get the following error message: An error occurred opening the browser. Please restart VSCODE and try again! Source: Open in Default Browser (extension)
Hi, is there any linux
/win10
cmd line that can help opening multiple HTML files at one time instead of opening them up one by one?
Performance
open-html-in-browser
2.1.2
Windows_NT x64 10.0.18362
1.41.1
C:\Users\Trang\peakchen90.open-html-in-browser-unresponsive.cpuprofile.txt
Find more details here: https://github.com/microsoft/vscode/wiki/Explain-extension-causes-high-cpu-load
when set "openInDefaultBrowser.run.openWithLocalHttpServer": true
,
open this html in your browser
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Flexbox 0 — starting code</title>
<style>
html {
font-family: sans-serif;
}
body {
width: 70%;
max-width: 960px;
margin: 20px auto;
}
button {
font-size: 18px;
line-height: 1.5;
width: 15%;
}
div {
height: 100px;
border: 1px solid black;
}
/* Add your flexbox CSS below here */
</style>
</head>
<body>
<div>
<button>Smile</button>
<button>Laugh</button>
<button>Wink</button>
<button>Shrug</button>
<button>Blush</button>
</div>
</body>
</html>
show like this
and you will find another div
in the dom
but if you set "openInDefaultBrowser.run.openWithLocalHttpServer": false
, that will not happen. or you just open the html in your filesystem
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.