Project Name is a VS Code extension that provides a custom sidebar panel for executing project name. Built using Angular and Vite, this extension enhances developer productivity by integrating a dynamic webview panel into the VS Code activity bar.
- Custom Sidebar Panel: Adds a "Project Name" panel in the VS Code activity bar.
- Webview Integration: Uses Angular for building a dynamic and interactive UI inside the VS Code webview.
- Fast Development & Build: Powered by Vite for quick bundling and serving.
Ensure you have the following installed:
- VS Code
- Node.js (LTS recommended)
- VS Code Extension Manager (vsce)
- Clone the repository:
git clone https://github.com/sebheron/angular-vscode-extension.git cd project-name
- Install dependencies:
npm install
- Build the extension:
npm run build
- Package the extension:
vsce package
- Install the packaged extension in VS Code:
code --install-extension project-name-0.0.1.vsix
- Open VS Code and find Project Name in the activity bar.
To run the extension in development mode:
- Start the Vite development server:
npm run dev
- Open VS Code and run Start Debugging (
F5
) to launch an extension development host.
The extension contributes the following to VS Code:
- Sidebar Panel: A dedicated "Project Name" view container in the activity bar.
- Webview Panel: A custom Angular-powered webview inside the sidebar.
Defined in package.json
:
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "project-name-sidebar",
"title": "Project Name",
"icon": "./assets/icon.svg"
}
]
},
"views": {
"project-name-sidebar": [
{
"type": "webview",
"id": "project-name-panel",
"name": "Project Name",
"icon": "./assets/icon.svg",
"contextualTitle": "Project Name"
}
]
}
}
- @analogjs/vite-plugin-angular: Angular support for Vite.
- @angular-devkit/build-angular: Angular build utilities.
- @tomjs/vite-plugin-vscode: Vite plugin for VS Code extensions.
- @types/vscode: TypeScript definitions for VS Code API.
- Vite: Development and build tool.
- @angular/common, @angular/core, @angular/platform-browser: Core Angular libraries.
- @vscode-elements/elements-lite: UI components for VS Code extensions.
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature-name
- Submit a pull request.
This project is licensed under the MIT License.