Location>code7788 >text

Common VS extensions and shortcuts

Popularity:284 ℃/2024-08-18 22:28:04

Common VS extensions and shortcuts

Extension 1: Select Next Occurrence

This extension can be current target, next target, previous target, similar to Alt+mouse drag, but can be used without alignment

  • mounting

    image-20240818190854817

  • Set up 4 frequently used shortcuts

    Tools->Options->Keyboard->c# 2005

    1. Select Next Shortcut: Ctrl+D
    image-20240818191257066
    1. Select Previous Shortcut: Ctrl+E
    image-20240818191426212
    1. Undo Shortcut: Ctrl+U
    image-20240818191539269
    1. Skip Shortcut: Ctrl+P
    image-20240818191626196
  • test

image-20240818191938162

Note: You can select the next one without alignment, it can be used with Alt+shift+"+"/"-"

Extension 2: XAML Styler for Visual Studio 2022

Used to format the Xaml language in WPF

  • mounting

    image-20240818194935268

The settings are as follows:
image-20240818195017579

Note: Right click + Format XAML or shortcut: Ctrl+2,Ctrl+K

Extension 3: Add New File

image-20240818212835309

image-20240818212900723

Shortcut key: Shift+F2. can nest folders

Note: VS2022 no longer needs to be installed, the new function Ctrl+Shift+A is added!

Extension 3: ILspy

Main features: you can realize the decompile, for their own can't understand can be decompiled to see the source code to help understand.

image-20240818213357950

image-20240818213435015

The results are as follows:

image-20240818213533678

This lamda expression is actually a delegate

Extension 4: CSharpier

Function: implement c# code specification.

image-20240818213800107

Expansion 5: CodeMaid

Functions: easy to manage with ah?, you can drag and drop click, you can connect multiple lines, sort multiple lines, organize the code structure.

image-20240818220041396

Commonly used shortcuts:

  1. Ctrl+C: don't need to select the whole line, just copy in this line

  2. Ctrl+tab: switch windows

  3. XaML comments: Ctrl+C,Ctrl+K; Ctrl+C,Ctrl+U.

  4. Search folder:Ctr+T