Version Used:
Microsoft Visual Studio Enterprise 2022 Int Preview (64-bit)
Version 17.0.0 Preview 5.0 [31726.67.main]
Steps to Reproduce:
- Create new Console app, choose .NET 6
- Add some more code in the Program.cs file
- Highlight some code and choose
Edit menu, Refactoring > Extract method (or use keyboard shortcut CTRL+R,CTRL+M)
Expected Behavior:
Extract method refactoring starts and highlighted code can be extracted into function within the top-level program file.
Actual Behavior:

Video:

Version Used:
Microsoft Visual Studio Enterprise 2022 Int Preview (64-bit)
Version 17.0.0 Preview 5.0 [31726.67.main]
Steps to Reproduce:
Editmenu,Refactoring>Extract method(or use keyboard shortcut CTRL+R,CTRL+M)Expected Behavior:
Extract method refactoring starts and highlighted code can be extracted into function within the top-level program file.
Actual Behavior:

Video:
