Publishing Extensions
Publicado en Sin categoría por pirulug.
Tu primera extensión
En este tema, le enseñaremos los conceptos fundamentales para crear extensiones. Asegúrese de tener Node.js y Git instalados, luego instale Yeoman y VS Code Extension Generator con:
<span class="token function">npm</span> <span class="token function">install</span> -g yo generator-code
El generador construye un proyecto de TypeScript o JavaScript listo para el desarrollo. Ejecute el generador y complete algunos campos para un proyecto de TypeScript:
yo code
<span class="token comment"># ? What type of extension do you want to create? New Extension (TypeScript)</span>
<span class="token comment"># ? What's the name of your extension? HelloWorld</span>
<span class="token comment">### Press <Enter> to choose default for all options below ###</span>
<span class="token comment"># ? What's the identifier of your extension? helloworld</span>
<span class="token comment"># ? What's the description of your extension? LEAVE BLANK</span>
<span class="token comment"># ? Initialize a git repository? Yes</span>
<span class="token comment"># ? Bundle the source code with webpack? No</span>
<span class="token comment"># ? Which package manager to use? npm</span>
<span class="token comment"># ? Do you want to open the new folder with Visual Studio Code? Open with `code`</span>
vsce
vsce, short for “Visual Studio
Code Extensions”, is a command-line tool for packaging, publishing and
managing VS Code extensions.
Installation
Make sure you have Node.js installed. Then
run:
npm install -g vsce
Usage
You can use vsce to easily
package
and
publish
your extensions:
$ <span class="token function">cd</span> myExtension
$ vsce package
<span class="token comment"># myExtension.vsix generated</span>
$ vsce publish
<span class="token comment"># <publisherID>.myExtension published to VS Code Marketplace</span>
vsce can also search, retrieve metadata, and unpublish
extensions. For a reference on all the available vsce commands,
run vsce --help.
- Estimación de Software en Función a las Métricas (14-Abr-2026)
- Cómo reparar Windows utilizando SFC y DISM (13-Ene-2025)
- Cómo solucionar problemas de conexión FTP en Debian (26-Dic-2024)
No hay comentarios aun. ¡Se el primero en comentar!