This is the fourth day of my participation in Gwen Challenge

To do a good job, he must sharpen his tools. Practice promotes the development of science and technology

Code-snippets (3) introduces some common custom code snippets in the front-end development process, convenient and quick, click a few letters on the input of custom code snippets, arbitrary -, –

Writing arrangement is not easy, diligent big hand son, love small praise point a little just for reference, according to the need to eat, insufficient, welcome all big brothers kindly comment, supplement and perfect, welcome to share

  • This article shares configuration optimization dailycodingThe editorVscode

Terminal integrationCmder Terminal

Of course, you can also use Windows Terminal, or beautiful, enough to replace Cmder

1. CmderIntroduction of Jane

Use cmder(official website) to replace cmd.exe, is an enhanced command line tool, integrated with more powerful functions, optional own git version, also can choose mini version can not only use Windows command, but also can use Linux, shell command. Make development more efficient, integrate into Vscode terminal, more efficient -, –

Cmder can be customized to beautify the interface through configuration

Some characteristics

  • Portable and easy to decompress
  • The commands include git, ls, and curl
  • You can set a command alias
  • Rich color themes (Solarized, Twilight, Ubuntu, Xterm, Monokai, even accept custom), customizable fonts
  • Support TAB paging, multi-port on the same screen (support horizontal segmentation, vertical segmentation)
  • Support custom terminal, whether CMD, PowerShell, bash can be used, also can inject environment variables

2. Cmderconfiguration

Or review command shortcut keys, slowly accustomed to shortcut keys, familiar to proficiency. First use Windows + Alt + P to enter the interface Settings

Background color, font, color, background transparency, hidden title bar, status bar… Command prompt $

Of course, the most convenient or alias alias Settings, the most is fast and convenient!

Git: git log -> gl/git push -> gp/ls Specific Settings will be added later

3. Integrated intoVscodeThe related configuration

The following code is the configuration after the Vscode version is updated to v1.55.0

VS Code version before update VS version after update

After the update, a message is displayed indicating that the configuration field is obsolete

After some exploration, the configuration is as follows

// The integration terminal is cmDER
"terminal.integrated.env.windows": {
  "CMDER_ROOT": "D:\\cmder"
},
"terminal.integrated.profiles.windows": {
  "Command Prompt": {
    "path": [
      "${env:windir}\\SysNative\\cmd.exe"."${env:windir}\\System32\\cmd.exe"]."icon": "terminal-cmd"."args": [
      "/k"."D:\\Cmder\\vendor\\init.bat"]}},// Set the default terminal go we configure the integrated CMDER alias
"terminal.integrated.defaultProfile.windows": "Command Prompt".Copy the code

${env:windir} and System32,SysNative correspond to the following figure

The path location of the CMder configured in arGS


Here list some configuration, for reference only, these can be customized according to their own needs, can greatly improve the efficiency of the code word, have you got it?

trailer

Below, I will update the CodeStyle in the daily development of [Code specification]. Please look forward to the difficulty in writing and sorting. hahah