2

The fastest way to add files and folders

 1 year ago
source link: https://devblogs.microsoft.com/visualstudio/the-fastest-way-to-add-files-and-folders/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

The fastest way to add files and folders

grace_taylor-2-e1628615336204-150x150.jpg

Grace Taylor

February 27th, 20237 0

Your Visual Studio team is excited to announce the release of the highly anticipated “Quick Add Files & Folders” feature in Visual Studio version 17.5!

This new feature is the fastest and most convenient way to add files and create folders within your projects. Based on the feedback from the Visual Studio Developer Community, Quick Add was requested and highly voted on, making it a top priority for our development team. Yes, your votes matter!

The team has iterated on the early preview to bring you the most efficient and effective way to manage your files.

Check out this video to learn more and then try it out and see how much time you can save.

The two shortcuts to remember are:

Ctrl+Shift+A Opens the last-used Add New Item dialog
Shift+F2 Always opens the compact Add New Item dialog

Have you tried this feature yet? Let us know what you think about it in the comments below.

Grace Taylor Program Manager

Follow

Posted in Visual StudioTagged Developer Productivity

Read next
Reference GitHub Issues and Pull Requests in Visual Studio
We’re excited to announce the preview release of linking GitHub Issues. With Visual Studio 2022 17.6 Preview 1 you can now mention your issues in the commit message box...
February 23, 2023
Try Visual Studio 2022 v17.6 Preview 1
The first Preview for Visual Studio 2022 17.6 is now available! This release expands on the recently released 17.5 version of Visual Studio and aims at enhancing your ...
February 28, 2023

7 comments

Log in to join the discussion.

  • Eugene Ivanoff

    February 27, 2023 7:37 am

    1

    Great feature! Big time saver! 🙂 Would be great to add ability to add several sibling folders like “Folder1|Folder2|Folder3”.

    • February 27, 2023 10:32 am

      1

      There is, just comma-separate them like this: “folder1/, folder2/, folder3/”

  • Whit Waldo

    February 27, 2023 11:39 am

    0

    If I could have one change made to the Add New File tool in VS, it would be that it more closely mimic what Mads’ tool does: When a file(s) is created, automatically jump focus from the Solution Explorer to the first line that makes sense in the context of the newly created file (e.g. between the open brackets of a new class). Ideally, this would mean that I can create the new file and immediately start typing out the properties of the class because it’ll create the file, jump focus to the code editor and the caret would already be between the curly braces of my new class.

    Today, when a new file is created (without Mads’ extension), the focus remains on the solution explorer, so when I tap the up arrow, I’m suddenly looking at an entirely different file since I just changed the file selection. This is the sole reason I’m still using the extension instead of this new built-in feature.

    Thanks!

  • Dwayne Robinson

    February 27, 2023 5:38 pm

    0

    Looks useful, as the old “New item” dialog was a slug. Sadly I had to roll back to 17.4.5 today because of some internal compiler errors, but I’ll gladly try this feature once that unrelated issue is fixed.

    Having the Escape key clear the text is pretty weird (0:48 in the YouTube video), rather than standard behavior of closing the dialog. 🤔 I’d rather just press backspace to clear the whole text or just type the new name to replace the placeholder like most edit controls (so, highlight the filename and extension too, since I often add a mix of .h and .cpp files, and VS can’t anticipate which I will want) or just leave it blank to begin with, thus leaving Escape to its normal duty.

    If the filename actually contains a comma, do we just put it in quotes? (e.g. “Foo, bar”, “another file name”) Cheers

  • Melanie Le

    February 28, 2023 7:51 am

    0

    Great tips

  • Stuart Ballard

    February 28, 2023 8:52 am

    0

    This looks amazing!

    What if you want to add multiple files in the same folder? Do you have to type “Folder/File1.cs, Folder/File2.cs” or is there a shorthand for that scenario like “Folder/(File1.cs, File2.cs)”?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK