Microsoft Adds AI Feature to PowerToys Advanced Paste

TapTechNews May 28th news, Microsoft announced in April this year that it will add an AI feature - Advanced Paste function to PowerToys on Windows 10 and Windows 11 systems, where code snippets copied from the clipboard can be converted into the programming language that users like.

 Microsoft Adds AI Feature to PowerToys Advanced Paste_0

TapTechNews attached an example as follows: If a user copies a C++ code and wants to convert it to Python, then the Advanced Paste function can help you achieve it.

Microsoft introduced this function at the Build 2024 Developer Conference, which is to use PowerToys to quickly convert XML to JSON. Microsoft said that in the future, any mainstream programming language can be converted into the code that users like.

However, it should be noted that the Advanced Paste function requires the user's OpenAI API key. After adding the OpenAI key, users can try the artificial intelligence function in Windows 11 by copying the code snippet and pressing the Windows key + Shift + V shortcut key.

 Microsoft Adds AI Feature to PowerToys Advanced Paste_1

As shown in the screenshot below, this keyboard shortcut will pop up a preview window with three default options: Paste as Plain Text (Ctrl+1), Paste as Markdown (Ctrl+2), and Paste as JSON (Ctrl+3).

 Microsoft Adds AI Feature to PowerToys Advanced Paste_2

It also allows you to view the clipboard history, which is much more advanced than the built-in clipboard history of Windows. To convert the code after copying, you can enter the Paste as (x language) command in the magic search bar. This will use OpenAI's ChatGPT-4o to convert the code. For example, you can enter paste as Python to convert the copied C++ code to Python.

 Microsoft Adds AI Feature to PowerToys Advanced Paste_3

 Microsoft Adds AI Feature to PowerToys Advanced Paste_4

Related reading:

Microsoft Previews New Skill of PowerToys: Advanced Paste Function Based on Local AI Model

Likes