Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>open-code-with-contentNew to Visual Studio Code? Get it now.
open-code-with-content

open-code-with-content

mingNeo

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

open-code-with-content

使用URL scheme打开vscode并打开带有内容的新文件

<script>
  function encodeBase64(content) {
    return btoa(encodeURIComponent(content))
  }

  const vscodeUrl = `vscode://mingneo.vscode-open-code-with-content?content=${encodeBase64('Content Text')}&language=plaintext`
</script>

<a href="vscodeUrl">open vscode with content</a>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft