Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ClewordPlusNew to Visual Studio Code? Get it now.
ClewordPlus

ClewordPlus

Sebastian Lin

|
227 installs
| (0) | Free
ClewordPlus mode for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ClewordPlus mode for Visual Studio Code

目前支持的功能

  • 语法高亮
  • 部分注释高亮
  • 预置模板
  • ClewordPlus命令
  • 代码诊断(需修改/保存文件触发)
  • 增强自动补全
  • 大纲

命令

用Command+Shift+P打开命令窗口,输入如下内容后能够看到对应的命令;这些命令执行如下对应的功能。

  • Compile ClewordPlus Document、Preview ClewordPlus Document和Publish ClewordPlus Document:编译、预览和发布。
  • Set ClewordPlus cleword.json Path:设置cleword.json文件所在路径。

注释高亮

为了设计定位的方便,输入如下注释时,对应的内容会有不同的高亮。

// TODO: PPT
// TODO: 插画
{TODO: PPT}
{TODO: 插画}

在下面用注释写对应的配图需求。

预置模板

新ClewordPlus文档模板

需要在一个已经打开的编辑器窗口内使用。

使用Command+Shift+P打开命令窗口,直接输入new clewordplus等字样,应该能看到New ClewordPlus Document一项。 选择该项可以在当前打开的编辑器窗口内加载新的ClewordPlus模板。

假如编辑器内已经有文本,会在右下角提示已经有内容是否覆盖。

编辑时的模板

你需要输入英文。

  • class:小课

  • char:人物

  • res:资源

  • scene:场景

  • hint:hint

  • alert:alert

  • select:选择题

  • multiselect:多选题

  • correct:正确答案(多选题)

  • branch:多选题分支

  • bg:背景

  • bgalt:背景名称

  • ask:填空题

  • choice:选项

  • talk:对话

  • say:说

  • think:想

    • 用法:

      // 输入人名
      vivian
      // 然后空格
      vivian 
      // 然后输入`say`或`think`后,选择对应的模板,回车
      vivian :这是say
      vivian :(这是think)
      
  • info:信息

  • class:小课

  • segue,trans:转场

  • classchar:小课人物

  • classselect:小课选择题

  • classmultiselect:小课多选题

  • classask:小课填空题

  • play:播放声音

  • playloop:循环播放声音

  • stop:停止播放声音

增强自动补全

输入@(引用资源)、do(跳转)和import(引入文件)时,会显示出当前已经定义的资源定义。

配置

ClewordPlus插件有如下的配置:

  • clewordplus.clewordJson: 指定cleword.json的路径;该文件用于将资源文件上传到云端。可在setting.json内添加如下内容进行设置:

    // ...
    "clewordplus.clewordJson": "[这里写cleword.json的绝对路径]"
    // ...
    

    也可以通过Set ClewordPlus cleword.json Path命令设置。

  • clewordplus.executable:指定运行ClewordPlus编译器的命令。

  • clewordplus.lintInterval:指定每次自动检查的时间间隔,单位ms,默认为6000ms,即6秒。

  • clewordplus.publishDefaultOpen:指定发布成功时是否直接打开发布地址。

  • clewordplus.previewDefaultNewInstance:指定每次开始预览时是否打开一个新的预览窗口。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft