https://github.com/pkief/vscode-angular-component-extractor
VS Code Extension to extract HTML Code into Angular components
https://github.com/pkief/vscode-angular-component-extractor
angular html vscode vscode-extension
Last synced: 5 months ago
JSON representation
VS Code Extension to extract HTML Code into Angular components
- Host: GitHub
- URL: https://github.com/pkief/vscode-angular-component-extractor
- Owner: PKief
- License: mit
- Created: 2021-05-05T17:33:13.000Z (almost 5 years ago)
- Default Branch: develop
- Last Pushed: 2023-03-14T15:53:45.000Z (about 3 years ago)
- Last Synced: 2024-05-01T22:08:36.447Z (almost 2 years ago)
- Topics: angular, html, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=PKief.angular-component-extractor
- Size: 1.99 MB
- Stars: 3
- Watchers: 4
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
Angular Component Extractor
Extract Angular Components based on editor selection
## Description
This extension for VS Code makes it easier to split components in an Angular project. Within a template you can select the part which should be extracted. Then another component is generated in the same directory using the Angular CLI.
## How to use

## Configuration
Angular generates components with a prefix. This prefix can be customized via VS Code settings:
```json
{
"angular-component-extractor.default-prefix": "app"
}
```
## Angular CLI
The extension is using [Angular CLI](https://angular.io/cli) under the hood. If the CLI is not installed it will execute it via NPX. In general, it's recommended to install the Angular CLI on the system to get a better performance of this extension:
```
npm install -g @angular/cli
```
## Feedback
As this extension is quite new on the VS Code Marketplace it would be nice if you could leave us some feedback. In case of any issues let us know of that and [create an issue](https://github.com/PKief/vscode-angular-component-extractor/issues/new) in the repository. Further suggestions and ideas are also welcome in a [discussion](https://github.com/PKief/vscode-angular-component-extractor/discussions).