Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>CityEngine 工具箱 — 官方案例库与函数速查New to Visual Studio Code? Get it now.
CityEngine 工具箱 — 官方案例库与函数速查

CityEngine 工具箱 — 官方案例库与函数速查

CityVistion

|
1 install
| (0) | Free
Browse official CityEngine CGA demo library, inspect CGA attributes online, and get builtin function reference on hover. Powered by cityengine.cn.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CityEngine 工具箱 — 官方案例库与函数速查

连接 cityengine.cn 的 VS Code 辅助工具:浏览官方 CGA 案例库、在线解析 CGA 参数、编写时悬浮查看内置函数说明。

功能

  • 官方案例库(CityEngine: 浏览官方案例库):实时拉取 cityengine.cn 官方案例(含引擎、参数规格),一键在浏览器打开在线 3D 演示,或查看完整参数规格
  • 属性在线解析(CityEngine: 解析当前 CGA 属性):调用 /api/v1/cv/inspect 解析当前文件的可调属性(名称/类型/默认值/取值范围/枚举),与网页端解析结果一致
  • 函数速查:CGA 文件中悬浮(hover)内置函数名(extrude / comp / split / roofGable / setback …)即显示用法说明
  • CGA 语言支持:.cga 语法高亮与括号/注释配置

使用

  1. 命令面板执行「CityEngine: 浏览官方案例库」选择案例 → 在线打开 3D 演示
  2. 打开 .cga 文件,右键「CityEngine: 解析当前 CGA 属性」查看可调参数
  3. 编写时把鼠标悬停在函数名上查看速查说明

配置

配置 默认 说明
cityengine.endpoint https://www.cityengine.cn cityengine.cn 基地址

说明

  • 案例库与属性解析均为在线接口,需要网络;接口本身免登录
  • 案例 CGA 源码的查看权限遵循 cityengine.cn 站点策略
  • 姊妹插件:CGA.js(CGA 编译与 3D 预览)、NL2CGA(自然语言生成 CGA)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft