Console.log is a very frequently used code in our daily front-end development, so how can we quickly type it in the vscode Compiler. In fact, it’s very simple, just two steps:
1. Open the file in vscode → preferences → user code fragment → search JavaScript in the search box and select JavaScript. JSON 2. Then we can open the key comment code in it
After opening, you can modify the code appropriately to see your personal habits
After saving, see the effect:
The effect of carriage return is as follows:
If you continue to use log as the keyword, choose the one in the figure below, otherwise console. Log () will not be displayed
div>
Read More:
- Vscode shortcut key
- Vscode code block / full text collapse / expand shortcut
- Solve the problem of vscode window console “flash”
- Vscode debug Java console input: evaluation failed because the thread is not suspended
- Vscode cnpm: unable to load file, but open console with CMD without error
- Configuration file for vscode setting.json UI interface or JSON form
- PHP CI (CodeIgniter) log level setting
- Eclipse automatic prompt setting method and optimization
- Solve the problem of using logback console to print log Chinese characters in IDEA as garbled characters
- Solve the problem of error running console reported by pycharm Python console
- The browser console reports failed to load resource: net :: ERR_CONNECTION_RESET, which results in unable to log in
- Visual studio code shortcut
- When react dynamically prunes components by operating arrays, the state of the remaining components is not preserved. Solution to the problem (method of dynamically setting unique key value)
- Shortcut to exit zoom mode in VirtualBox [off]
- Modify the custom keyboard shortcut of visual studio code
- Apache [error] server reached MaxClients setting, consider raising the MaxClients setting
- Ubuntu 20.04: How to create shortcut startup mode in IntelliJ idea
- Python idle add configuration shortcut (Ctrl + L)
- Consult IDE log for more details (Help | Show Log),read failed, socket might closed or timeout,
- @In slf4j log.info Compile error: cannot find symbol log