However, I'd rather be able to use this functionality without having to drag my mouse to the Edit menu. To support that, I added a keystroke combination for the underlying commands related to these menu choices.
If you want to do the same, first go to Tools | Options | Environment | Keyboard. To grab the commands, in the "Show commands containing" textbox, type in AsClasses and select one. Then, from the "Use new shortcut in" dropdown list, pick your language's editor (for example, CSharp Editor or Microsoft Visual Basic Editor). Now you can click in the "Press shortcut keys" textbox to select your shortcut key(s): Just press the keys you want to use. Finally, click the Assign button. Lots of people forget that step and just click the OK button at the bottom of the dialog (by "lots of people" I mean: me).
You probably don't want to override any existing shortcut keys so I'd recommend picking a "chord": two or more keys pressed sequentially while holding down one of the control keys (the dialog box will tell you if you pick a shortcut that's already in use). I picked Ctrl+K, J for pasting JSON and Ctrl+K, M for pasting XML (Ctrl+K, X was already taken for inserting snippets and, who knows, I might start using that some day).
Posted by Peter Vogel on 02/16/2018 at 6:16 AM
Emphasizing its "dev" focus, Microsoft trumpeted its Dev Home, Dev Drive and Dev Box offerings at its Build 2023 developer conference this week.
It's getting easier to use natural language to have AI create your low-code business apps.
Two major themes permeating the conference are copilots -- AI assistants across a broad swath of products and services -- and plugins, which effectively transform copilots into aggregators, potentially making them one-stop shops for both enterprise and consumer customers.
Among the many AI-related announcements at this week's Microsoft Build 2023 developer conference is a new AI-powered "Q&A Assist" tool for the Microsoft Q&A site, along with new updated AI training and documentation.
At Build 2023, Microsoft revealed updates for Dev Box, a cloud-based developer workstation service.
> More Webcasts