Skip to content

This is a starter kit for creating a new extension for Visual Studio Code. It includes a basic structure and configuration to start developing a new extension.

License

Notifications You must be signed in to change notification settings

ManuelGil/vscode-extension-starter-advanced

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VS Code Extension - Starter Kit

Visual Studio Marketplace Version Visual Studio Marketplace Installs Visual Studio Marketplace Downloads Visual Studio Marketplace Rating GitHub Repo stars GitHub license

This is a starter kit for creating a new extension for Visual Studio Code. It includes a basic structure and configuration to start developing a new extension.

Table of Contents

Features

  • Basic configuration for the development environment
    • .editorconfig - Editor configuration
    • .eslintignore - ESLint ignore file
    • .eslintrc.json - ESLint configuration file
    • .linstagedrc - Lint-staged configuration file
    • .nvmrc - Node version manager configuration file
    • .prettierrc - Prettier configuration file
    • commitlint.config.js - Commit lint configuration file
    • package.json - Package configuration for the extension
    • tsconfig.json - TypeScript configuration for the extension
  • Basic structure for a new extension
    • app - Source code for the extension
      • config - Configuration files for the extension
      • controllers - Controllers for the extension
      • helpers - Helper functions for the extension
      • models - Models for the extension
      • providers - Providers for the extension
      • services - Services for the extension
    • test - Test files for the extension
  • JSON Schema validations for workspace settings
    • settings.schema.json - JSON schema for the workspace settings
  • Helper functions to get started with the extension
    • command.helper.ts - Helper functions to create a new command
    • data.helper.ts - Helper functions to create a new data provider
    • dialog.helper.ts - Helper functions to create a new dialog
    • filesystem.helper.ts - Helper functions to create a new file system provider
    • inflection.helper.ts - Helper functions to create a new inflection provider
    • number.helper.ts - Helper functions to create a new number provider
    • security.helper.ts - Helper functions to create a new security provider
    • text.helper.ts - Helper functions to create a new text provider
  • Basic commands to get started with the extension
    • extension.ts - Main file for the extension
    • commands - Commands for the extension
      • example.controller.ts - Example controller for the extension
    • providers - Providers for the extension
      • feedback.provider.ts - Feedback provider for the extension

Prerequisites

You need to have node and npm installed on your system to run the examples. It is recommended to use the node version used for VS Code development itself which is documented here

Usage

  • Clone or Download this repository
  • Unzip the archive if needed
  • Rename the folder if needed
  • Add the project folder to the editor
  • npm install in the terminal, then F5 to run the sample

For more information, see the official documentation

Running the documentation

To run the documentation, execute the following command in the terminal:

npm run compodoc

This will generate the documentation in the compodoc folder.

For more information, see the official documentation

Building the extension

To build the extension, execute the following command in the terminal:

vsce package

This will create a .vsix file in the root of the project.

For more information, see the official documentation

Publishing the extension

To publish the extension, execute the following command in the terminal:

vsce publish

This will open a new instance of Visual Studio Code with the extension running in debug mode.

For more information, see the official documentation

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Code of Conduct

Please read CODE_OF_CONDUCT.md for details on our code of conduct.

Changelog

See CHANGELOG.md

Authors

See also the list of contributors who participated in this project.

License

Extension Starter Kit for VSCode is licensed under the MIT License - see the MIT License for details.