Extract vue component using Composition API

Hi everyone!

I fairly regularly use the ‘Extract Vue Component’ feature and I was wondering if there is a config option to tell WebStorm to use the Composition API template.

Right it defaults to the Options API when extracting a Vue component.

Thanks!

1
3 comments
Hello!

Unfortunately this template is hardcoded and can't be customized.

Please vote for https://youtrack.jetbrains.com/issue/WEB-58888/Vue-TypeScript-The-Extract-Vue-Component-refactoring-should-respect-the-source-component-format to raise its priority and get notified when it's fixed.
0

I feel they should make the template used for the ‘Extract Vue Component’ feature fully editable. If not that, at least allow to choose for Typescript and Composition API.

0
We kindly ask you to vote for the issue at the following link: https://youtrack.jetbrains.com/issue/WEB-58888. Additionally, please consider linking related tickets to receive notifications of any updates.

Thank you.
0

Please sign in to leave a comment.