Skip to content
| Marketplace
Sign in
Visual Studio Code>Extension Packs>hap-skeleton-extension-packNew to Visual Studio Code? Get it now.
hap-skeleton-extension-pack

hap-skeleton-extension-pack

hapTeam

|
1 install
| (0) | Free
extensions pack for quickapp skeleton
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

hap-skeleton-extension-pack

中文详情

快应用骨架屏的插件包,支持生成骨架屏、预览骨架屏文件、骨架屏文件语法提示。

要求

  1. 快应用开发工具:3.7.0 及以上版本。

  2. 快应用调试器和引擎:1090 及以上版本(注:骨架屏是根据真机效果生成的,且只有新版本的调试器和引擎支持)。

功能

生成骨架屏

  1. 点击 IDE 工具栏的骨架屏图标,打开骨架屏的二维码弹窗。

    generate

  2. 待编译完成后,快应用调试器扫描二维码,连接真机。

  3. 真机上切换到需要生成骨架屏页面,IDE 点击「生成骨架屏」按钮即可。

预览

  1. 打开 .sk 文件,点击 IDE 标题栏右上角的预览图标,打开预览面板。保存修改后的 .sk 文件,可以刷新预览页面。

    注意:暂不支持预览 <full-screen-img>

    preview

  2. 预览的尺寸

    • 竖屏,预览的宽度为 375px,高度按真机比例算出
    • 横屏,预览的宽度为 750px,高度按真机比例算出
  3. 配置预览的尺寸

    • 点击配置按键(1),选择 “设置”(2),打开配置面板。

    setting

    • 搜索 “skeleton”(3), 切换到“工作区”(4),可配置工作区的骨架屏尺寸。
      • Height:屏幕高度
      • Width:屏幕宽度
      • Top:屏幕上方的偏移量(标题栏和状态栏的高度),默认为 0
      • Left:屏幕左边的偏移量,默认为 0

语法功能

  1. 语法高亮

  2. 自动补全

    autoCompletion

  3. Emmet

    emmet

  4. 悬浮提示

    hover

  5. 取色器

    colorPicker

  6. 格式化

    • 右键菜单 - 选择 “格式化文档”,可进行格式化
    • 配置格式化规则:点击IDE左下角配置按键 - 选择 “设置” - 搜索 “skeleton” - 配置 “hap-skeleton.prettyHtml”(注:需要重启 IDE,新规则才能生效)。

English Details

Extensions pack quickapp skeleton, which supports generating, preview and language feautures for skeleton.

Requirements

  1. Quickapp IDE: 3.7.0 or upper version.

  2. Quickapp Debugger and Engine: 1090 or upper version (Tip: skeleton is generated according to the real effect on the mobile phone, and only debugger and engine of new version supports).

Features

Generate Skeleton

  1. Click the skeleton icon on the IDE tool bar to open the skeleton dialog.

    generate

  2. After the compilation, scan the QR code with quickapp debugger.

  3. Switch to the page which needs to generate skeleton on the mobile phone, and click the "Generate Skeleton" button on the IDE.

Preview

  1. Open .sk file, click the preview icon on the upper right corner of the IDE title bar to open the preview panel. Modify and save the file, can refresh the preview page.

    Tip:<full-screen-img> is not supported now.

    preview

  2. Preivew size

    • Vertical screen, width is 375px, height is calculated according to the machine ratio.
    • Horizontal screen, width is 750px, height is calculated according to the machine ratio.
  3. Setting preview size

    • Click Setting Button (1), select "Settings" (2), open the setting panel.

    setting

    • Search "skeleton" (3), and switch to "Workspace"(4), you can modify the preview size。
      • Height:screen height
      • Widthscreen width
      • Top:screen top offset (space for title bar and status bar), default zero
      • Left:screen left offset, default zero

Language Features

  1. Syntax Highlight

  2. Atuto Completion

    autoCompletion

  3. Emmet

    emmet

  4. Hovers

    hover

  5. Color Picker

    colorPicker

  6. Format

    • Contextmenu - select "Format Document"
    • Setting format rules: click setting button on the IDE left bottom corner - select "Settings" - search "skeleton" - setting "hap-skeleton.prettyHtml" (Tip*: The new rules will work after restarting IDE).
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft