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

FR: Extract code to new val #2

Open
nbbaier opened this issue Nov 3, 2023 · 0 comments
Open

FR: Extract code to new val #2

nbbaier opened this issue Nov 3, 2023 · 0 comments

Comments

@nbbaier
Copy link

nbbaier commented Nov 3, 2023

It would be nice to have a command that could take selected code in a file/val and extract it to a new file. The workflow I imagine is like this:

  1. Select some text
  2. Trigger "Extract to new val" (or similar) command
  3. Extension creates new val from that text

It would also perhaps be nice to have an editing step in there before "committing" the new Val to the Val Town.

Also, as @neverstew has suggested on the discord, it might be possible to use VSCode's built in Refactor command to do this to some extent.

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

No branches or pull requests

1 participant