Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the practical tips in VSCode terminals?

Shulou Source: shulou.com Published: 2022-06-01 07:21:53 10月02日 Update

What are the practical tips in the VSCode terminal? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible method.

I have been using VS Code terminal for a long time. Today I am curious to find two tips to record my excitement. So what problems do these techniques solve?

Some words in the command are typed incorrectly. When you want to change a word, you have to delete or move it from back to front, which is clumsy and unfriendly.

The command is all wrong. I want to delete it all, but I want to delete it letter by letter, often speechless.

Two skills

If you are also worried about the above problems, then move on. (take Mac OS as an example)

1. Partial modification command

If you execute this command and find that there is an error and no permission, at this time you want to add sudo to the front of the command, you can

Option + mouse click

The premise is that the terminal has got the focus, and then the cursor moves near the specified location.

It is much more efficient than moving letter by letter.

two。 Entire delete command

When you paste a command to the terminal, all kinds of possible reasons, suddenly do not want to execute, you can

Command + delete key

The corresponding control key is the Windows + delete key, so you can quickly delete the entire command.

Another technique, the arrow keys to check the history of the command, presumably everyone knows, will not be verbose.

Summary:

Option + mouse click, quickly move the cursor, modify commands

Command/control + delete key, delete the entire command

Arrow keys to view the history command

This is the answer to the questions about the practical tips in the VSCode terminal. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.

Tags: Commands skills letters terminals questions mobile practical up and down two cursor words history more mouse help answers easy excited curious clumsy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS Linux Xiaomi NVidia