Skip to content

FR: Extract code to new val #2

Description

@nbbaier

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions