Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request | Add settings option to toggle display of "Split button" #2163

Closed
DanielBoettner opened this issue Dec 1, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@DanielBoettner
Copy link

Feature request description

In *v1.0.11 the button to split a vue file into template / script / style was removed to save space.
Instead a command was added to offer the same functionality.

I would like to suggest to also add an option in the settings to display the button if the user wants
to use the functionality via the interface.

Details

The button as seen in v1.0.9

image

Related issues:

@bogdan-coman-uv
Copy link

That button was actually very handy. Please add the option to show it in the interface

@johnsoncodehk
Copy link
Member

Hi @DanielBoettner, do you think you still want it?

@DanielBoettner
Copy link
Author

@johnsoncodehk I do. Currently I manually use a lower version so I have the functionality.

I think the original idea to hide it and allow this via command was the right choice.
Screen space can still be a precious good even when its abundant.

However, I think an option to still be able to use a button. is useful when the user is not going full keyboard shortcut ninja.
Maybe at some point in the future I only use the command because it went into my muscle memory.
But without the button, I likely would have never realized this is a feature.
And this one of the important features in my view.

The ability to easily have important parts tabbed/split in a single file tab is superb.

Offtopic:
Is there a way too have vue files split 3 ways instead of just 2?
When I click the button it splits template and script. Sometimes I whish it would even split styles.

@johnsoncodehk
Copy link
Member

@DanielBoettner Thanks for your feedback, I will add a setting for it in the next version.

Is there a way too have vue files split 3 ways instead of just 2?
When I click the button it splits template and script. Sometimes I whish it would even split styles.

Unfortunately, it's impossible based on VSCode's editor groups.

@johnsoncodehk johnsoncodehk added enhancement New feature or request and removed in-discuss labels Dec 20, 2022
@zqy233
Copy link

zqy233 commented Dec 20, 2022

@DanielBoettner Thanks for your feedback, I will add a setting for it in the next version.

Is there a way too have vue files split 3 ways instead of just 2?
When I click the button it splits template and script. Sometimes I whish it would even split styles.

Unfortunately, it's impossible based on VSCode's editor groups.

How about adding another button to split template and styles,user can control by settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants