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

Add extract to file (existing or new) #234724

Closed
Dannykcw opened this issue Nov 27, 2024 · 5 comments
Closed

Add extract to file (existing or new) #234724

Dannykcw opened this issue Nov 27, 2024 · 5 comments
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension

Comments

@Dannykcw
Copy link

Dannykcw commented Nov 27, 2024

Type: Feature Request

There is this issue that added features to extract code to a function.

Let say I have this file tic-tac-toe.c, and I want to extract the selected functions to board.c since tic-tac-toe.c is getting too big.

It would look similar to something like this Image

The keybind would instead be something like this: select portion of code -> right click -> refactor -> extract to file -> options (if needed) at the top

VS Code version: Code 1.94.0 (Universal) (d78a74b, 2024-10-02T13:08:12.626Z)
OS version: Darwin x64 22.6.0
Modes:

Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.95.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@IllusionMH
Copy link
Contributor

What language?
It's should be available for built in TS/JS support

@Dannykcw
Copy link
Author

Dannykcw commented Nov 27, 2024

What language? It's should be available for built in TS/JS support

I am doing it in c. This is what I see on my end. The option doesn't appear to show up

@mjbvz
Copy link
Collaborator

mjbvz commented Nov 27, 2024

/extC++

Copy link

It looks like this is caused by the C++ extension. Please file the issue to the C++ extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!

@vs-code-engineering vs-code-engineering bot added the *caused-by-extension Issue identified to be caused by an extension label Nov 27, 2024
@vs-code-engineering vs-code-engineering bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants