Vscode can quickly expand the selection when editing, making it easy to select the statement blocks that need to be changed. Many friends may not expand the selection. Let’s take a look at the following.
1. First open Vscode and enter the editing window.
2. Then double-click to open a Python file in the left explorer.
3. Select an if statement in the editing area.
4. Then click the "Select" menu item above.
5. Then click the "Expand Selection" item in the drop-down menu.
6. Finally, select the while statement outside the if statement to successfully expand the selection.