Skip to content

Repository files navigation

Angular Component Editor

Source CodeVisual Studio Code MarketplaceVisual Studio Code Marketplace

Based on

This extension is based on Angular Split. All I did, was add an option to customize in which tab a filetype should be opened.

Features

An extension that allows you to easily open the corresponding Angular Component files (template, script, stylesheet and spec files) side-by-side with a single key binding.

You can also configure which files you wish to open, as well as the file extensions to look for when attempting to split.

Extension Settings

SettingDescriptionDefault
angular-component-editor.enable.templateWhether template file should be included when split viewing the component filestrue
angular-component-editor.enable.scriptWhether script file should be included when split viewing the component filestrue
angular-component-editor.enable.styleWhether stylesheet file should be included when split viewing the component filestrue
angular-component-editor.enable.specWhether spec file should be included when split viewing the component filesfalse
angular-component-editor.files.templateThe list of file extensions to try and open for the component template["html"]
angular-component-editor.files.scriptThe list of file extensions to try and open for the component script["ts"]
angular-component-editor.files.styleThe list of file extensions to try and open for the component stylesheet["css", "scss", "sass", "less"]
angular-component-editor.files.specThe list of file extensions to try and open for the component specification["spec.ts"]
angular-component-editor.templateIn which tab the file should be opended (available options: see ViewColumn)2
angular-component-editor.scriptIn which tab the file should be opended (available options: see ViewColumn)1
angular-component-editor.styleIn which tab the file should be opended (available options: see ViewColumn)4
angular-component-editor.specIn which tab the file should be opended (available options: see ViewColumn)3

ViewColumn

Official Documentation from VS-Code

enumViewColumn{/** * A *symbolic* editor column representing the currently active column. This value * can be used when opening editors, but the *resolved* [viewColumn](#TextEditor.viewColumn)-value * of editors will always be `One`, `Two`, `Three`,... or `undefined` but never `Active`. */Active=-1,/** * A *symbolic* editor column representing the column to the side of the active one. This value * can be used when opening editors, but the *resolved* [viewColumn](#TextEditor.viewColumn)-value * of editors will always be `One`, `Two`, `Three`,... or `undefined` but never `Beside`. */Beside=-2,/** * The first editor column. */One=1,/** * The second editor column. */Two=2,/** * The third editor column. */Three=3,/** * The fourth editor column. */Four=4,/** * The fifth editor column. */Five=5,/** * The sixth editor column. */Six=6,/** * The seventh editor column. */Seven=7,/** * The eighth editor column. */Eight=8,/** * The ninth editor column. */Nine=9}

Key Bindings

CommandDescriptionBinding
angular-component-editor.executeExecute the split actionStrg + Shift + O (Shift + Alt + S on Mac)

Known Issues

None


Planned Features

  • close all files of an component with one shortcut

Releases

Packages

Used by

Contributors

Languages