Vlasov Studio HTML_11 2.0
HTML 11-Ω578867473
HTML 11 extension provides tool windows in Visual Studio 2022/2019/2017 showing preview of static and dynamic web pages you are currently editing, on desktop and mobile devices.
Static .html pages
The preview is updated as you type. When you change a .css or a .js file referenced in the HTML document, the preview is updated after you save the referenced file.
Razor .cshtml pages in ASP.NET Core 2.1/3.0 web application
MVC view .cshtml pages in ASP.NET Core 2.1/3.0 web application
.razor pages in Blazor app
Web Forms .aspx pages in ASP.NET web application
MVC view .cshtml/.vbhtml pages in ASP.NET web application
While the web application server is running in IIS Express, the preview is updated when you save a document. When the server is stopped, the preview is no longer updated and a red border is displayed around the preview area.
Getting started
To initially open HTML 11 tool windows, select Desktop preview or Mobile preview in the main HTML11 menu:
You can position opened tool windows alongside the HTML editor or outside the main Visual Studio window, e.g. on a second monitor.
HTML is rendered using Chromium Embedded Framework v92.
The Reload command resets and reloads all opened previews.
How it works
Static .html pages and associated resources (images, styles, scripts) are loaded by the embedded Chromium browser directly from the disk. For the live preview, page content is provided from a memory buffer.
To show preview for dynamic pages, you need to start the web application (usually pressing Ctrl + F5). HTML 11 finds App/Project URL in web server settings (usually http://localhost:[random-port]), adds the file path to it and opens the preview. When you change and save a page, Visual Studio recompiles it on save, updates the application on the fly, HTML 11 updates the preview and you see the updated page.
Troubleshooting
If a page preview is not displayed, you can enable diagnostics in Options:
And then in the Output window General page you can look for additional information:
Redirection
If you use custom routing in your web application, you may need to additionally configure HTML 11 to support a different URL scheme.
For example, if you add a culture prefix to your pages in the controller like http://localhost:59999/en/Home/Tourists and open Tourists.cshtml for editing in Visual Studio, HTML 11 will try to connect to http://localhost:59999/Home/Tourists page and fail.
To support this configuration, open Project options from the main HTML 11 menu and add a redirection rule with Pattern=.+ and Target=en/$_:
Pattern and Target use syntax and operate on the path part of the URL, in the example above it is Home/Tourists.
Project options are separate for each Visual Studio project and the dialog opens relative to the current active Visual Studio document. It is best to first open the page you want to adjust and then select the Project options menu command.
The Stop processing option in a redirection rule means that if the rule matches, no further rules will be processed.
You can disable a dynamic page preview setting Target to :: and you can override the project url settting Target to an absolute url.
Live preview
By default, for static pages the preview is updated as you type. If frequent changes distract you, you can disable it and the preview will be updated only when you save the file:
Chrome dev tools
Developer tools menu command opens the standard Chromium developer tools window:
Mobile preview
In HTML 11 options you can select a mobile device for preview:
A mobile device is simulated with Chromium DevTools Device Mode.
Open on Android emulator
Open on Android emulator menu command opens the current page on a running Android emulator:
To run an Android emulator, download and install Android Studio. Start Android Studio, select Tools - AVD Manager, Create Virtual Device and Launch it.
Once an AVD image is created, you can quickly start the emulator without opening Android Studio using the following command file:
set ANDROID_SDK_ROOT=%LOCALAPPDATA%\Android\Sdk %ANDROID_SDK_ROOT%\emulator\emulator.exe -avd Pixel_2_API_29
To show available AVD names:
set ANDROID_SDK_ROOT=%LOCALAPPDATA%\Android\Sdk %ANDROID_SDK_ROOT%\emulator\emulator.exe -list-avds
To communicate with the emulator, HTML 11 uses the Android Debug Bridge utility located at:
%LOCALAPPDATA%\Android\Sdk\platform-tools\adb.exe
For dynamic web pages, by default IIS Express listens on localhost, Android emulator accesses the host network at 127.0.0.1 and HTML 11 acts as an HTML proxy between them. To allow direct communication and make Blazor apps work, set App URL host to 127.0.0.1 in Web Server Settings for your site:
The preview is updated when you Save All documents.
相关文章
- HTML入门教程_html代码基础
- Visual Studio Code Macv1.71.0中文版
- 图片下划线 html,HTML <U>下划线标签元素 HTML下划线标签「建议收藏」
- html直接分页的样式,HTML分页样式「建议收藏」
- Visual Studio 2012旗舰版序列号:「建议收藏」
- html中超链接使用_HTML超链接代码
- SILKYPIX Developer Studio Pro 11E Mac(RAW数码照片处理)
- 关于Android老项目在Android Studio 4.0运行的报错
- android studio gradle 版本更新
- html中如何写系统时间,在HTML页面获取当前系统时间
- HTML制作网页_手机制作html网页
- 1.基于Label studio的训练数据标注指南:信息抽取(实体关系抽取)、文本分类等
- 解决android studio 无法更新插件的问题(某些)
- android studio快捷键设置。
- GameMaker Studio 2 专属命令行工具 Rubber 简易使用教程
- 【C++ 语言】Visual Studio 配置 FFMPEG 开发环境 ( VS2019 CMake 环境安装 | 下载 FFMPEG 开发包 | 配置 FFMPEG )
- 【C语言】一次性解决visual studio中scanf函数不安全报错问题
- 视频编辑软件Mac版:达芬奇DaVinci Resolve Studio 18
- 【玩转 Cloud Studio】用Cloud Studio搭建自己的博客(hexo)
- Python Visual Studio下载和安装教程
- android studio gradle自动签名构建实现详解手机开发
- 简单构建HTML页面,连接MySQL数据库(html连接mysql)
- 使用HTML连接MySQL数据库实现功能(html连接mysql数据库)
- Linux开发HTML网站:一个简单的指南(linux开发html)
- MySQL与HTML的无缝连接(html与mysql连接)
- 文件MySQL数据库存储HTML文件.(mysql存html)
- 从 HTML 页面访问 MySQL 数据库.(html访问mysql)
- 使用MySQL和HTML打造高效的数据驱动网站(mysql与html)
- HTML <html> 标签
- HTML 操作 Oracle 数据库的实现(html调用oracle)