Where can I set a shortcut in VS 2022 to Project context menu ->New file

Shimmy Weitzhandler 246 Reputation points
2023-04-05T09:50:49.35+00:00

Hi,

Where can I set a keyboard shortcut or alternatively a command to this menu item that quickly adds an empty file without any menus?

Here's how the file is added:

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,343 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 46,386 Reputation points
    2023-04-05T10:54:33.5633333+00:00

    Have you tried this feature added to VS 17.5? Shift+F2 The fastest way to add files and folders

    1 person found this answer helpful.
    0 comments No comments

  2. Viorel 118.9K Reputation points
    2023-04-05T10:11:57.5266667+00:00

    Maybe <Ctrl+N> already works. I think that the command is called “File.NewFile” and you can change the shortcut in Option dialog (Environment, Keyboard tab) from Tools menu.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.