Move Definition Location
What: Move a function definition to the corresponding header file.
When: You have a function that you want to move to a header file.
Why: You could manually move the function, but this feature will move it automatically, and create the header file if necessary.
How:
Place your text or mouse cursor over the function for which you want to move.
Next, do one of the following:
- Keyboard
- Press Ctrl+. to trigger the Quick Actions and Refactorings menu and select Move Definition Location from the context menu.
- Mouse
- Right-click and select the Quick Actions and Refactorings menu and select Move Definition Location from the context menu.
- Keyboard
The function will be moved to the corresponding header file, which you'll see in a popup preview window. If the header file doesn't exist, it will also be created and placed in the project.
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for