Closed amyXia1994 closed 6 months ago
found similar feature for helm chart template(from vscode kubernetes extension maintained by microsoft), could be triggered by command: Helm: Preview Template
This feature is implemented using vscode webview, and the yaml format preview doesn't support highlight or folding.
This feature seems more meaningful on vscode-kcl extension, let's migrate the feature from vscode-kusion to vscode-kcl. 😃 cc @He1pa
similar code preview features in vs code markdown
here is VS Code's out-of-the-box basic Markdown support for markdown preview:
⇧⌘V
Open Preview (⇧⌘V)
Markdown: Open Preview (⇧⌘V)
or, users can view the preview side-by-side with the file that is being edited and see changes reflected in real-time by:
⌘K V
Markdown: Toggle Preview Locking
here are the commands in the command palette:
the button in the editor toolbar for markdown preview:
the right-click menu on the editor tab:
similar preview features in vs code SVG Previewer extension
Optimization of kcl compile
The feature can only be triggered when a valid KCL file is in the active editor:
support viewing the corresponding YAML data of a KCL configuration
⇧⌘V
Open Preview (⇧⌘V)
KCL: Data Preview (⇧⌘V)
⌘K V
⌘K V
besides, the markdown preview can automatically synchronize between the Markdown editor and the preview panes. Scroll the Markdown preview and the editor is scrolled to match the preview's viewport. Since the KCL code and the Yaml data are not exactly one-to-one associated like markdown, that feature is not suitable for kcl.
ref