Setup of development environment
1. Overview of this article:
◇ How to configure the development environment for the new PC
Those tools should be installed on a new computer
◇ Chrome installation and setup tips
◇ Vscode configuration
Git configuration
◇ Node and NPM configuration
Installation of scaffold tools
◇ Postman tool installation
Installation of scaffold tools
Other recommendations
2. The preface
After formal entry or routine system reinstallation, if the company is equipped with a new computer. All need to rebuild the development environment, the process of setting up the environment is very painful, because do not know what things need to be installed, must configure, will also cause some plug-ins or packages missing installation, which has become a lot of novice programmers trouble. Here is a list of the basic configuration of the development environment. This list includes the basic configuration of the new computer when I interview the author. You can continue to add plug-ins, tools and so on in this list, so that the new computer can be configured according to the list.
3. Configure the list
3.1 Chrome installation and Settings tips
Chrome download address, installation method next next
1.1 Setting the Default Search
After setting this parameter, enter the content to be searched in the address box
- Click Settings
- Set the default search to Baidu
Google add-on Amway wave
- Very easy to use a sidebar
- A must for Vue developers
- Lantern, a free VPN tool
Download by Lantern (github)
1.2 Filtering Static Resources
3.2 Vscode download, install, and common plug-ins
Vscode download address
3.2.1 Chinese language Plug-in
-
Search Chinese
-
Click on simplified Chinese to download
3.2.2 theme
A pleasing theme protects your eyes and gives you the comfort of writing code
-
I’ve downloaded my favorite Atom theme, and you can install your own
-
Search Atom, the first one is
-
Click on the install
3.2.3 File Icon Theme
Allows you to quickly identify the type of file
-
Search icon
-
Find your favorite icon theme, download and install
-
Set the theme
-
In the popup frame, start your own theme installation
3.2.4 Source code management plug-in GitLens
In the process of collaborative development, the development logs can be viewed to improve development efficiency
-
Search GitLens
-
Click on the install
3.2.5 Live Server
Ability to start a local server for better real-time preview of development projects
-
Search the Live Server
-
Download and install
3.2.6 prettier-code formatter
Helps developers format code and provides color keywords to make code more readable
-
Search for prettier-code formatter
-
Download and install
3.2.7 Simple React Snippets
If you need to develop React, you can install this plugin
-
Download Simple React Snippets
-
Install the download
3.2.8 JS JSX Snippets
If you need to develop React, you can install this plugin
-
Search JS JSX Snippets
-
Install the download
3.2.9 Vetur
Vue development tools
-
Search Vetur
-
Install the download
3.2.10 Set the colors of comments and variables
Customize comments and variables as needed
-
Click Settings in the lower left corner
-
Search the setting.json file
-
Copy the following code Settings
"editor.tokenColorCustomizations": { "comments": { // Set the font style bold underline italic etc "fontStyle": "".// Set the font color "foreground": "#4CAEE2" }, / / comment "keywords": "#0a0"./ / key "variables": "#f00"./ / variable names "strings": "#e2d75dbd"./ / string "functions": "#5b99fcc9"./ / the function name "numbers": "#AE81FF" / / digital } Copy the code
3.3 Git Download, Installation, and Configuration
Git download address
3.3.1 Configuring the Global User Name and mailbox
-
Configuring the Global Mailbox
Git config --global user.emailCopy the code
-
Configure the global user name
git config --global user.name "wang" Copy the code
3.3.2 rainfall distribution on 10-12 SSH configuration
-
Enter ssh-keygen in Git Bash Here and press Enter three times as prompted
ssh-keygen Copy the code
-
Copy the contents of the public key
- Where the address
// C:\Users\ your computer user name \.ssh\id_rsa.pub Copy the code
-
Copy the content to github, Code cloud, GitLab and other hosting platforms, find the Settings, copy the public key content, paste it
3.4 Node and NPM download Settings
Node download address
Node version no later than 10, 20210519
3.4.1 track CNPM
-
Installation Method 1:
npm i cnpm -g Copy the code
-
Installation Method 2:
#If you do not configure Taobao mirror can parameter incoming acceleration npm install -g cnpm --registry=https://registry.npm.taobao.org Copy the code
3.4.2 yarn
-
Installation Method 1:
npm i yarn -g Copy the code
-
Installation Method 2:
cnpm i yarn -g Copy the code
Rule 3.4.3 NRM
-
The installation
cnpm install -g nrm Copy the code
-
The available image sources for NRM are displayed
C:\Users\WebSec>nrm ls * npm -------- https://registry.npmjs.org/ yarn ------- https://registry.yarnpkg.com/ cnpm ------- http://r.cnpmjs.org/ taobao ----- https://registry.npm.taobao.org/ nj --------- https://registry.nodejitsu.com/ npmMirror -- https://skimdb.npmjs.com/registry/ edunpm ----- http://registry.enpmjs.org/ Copy the code
-
Changing the Mirror Source
nrm user xxx Copy the code
3.4.4 nodemon
-
The installation
cnpm i nodemon -g Copy the code
-
Executing the Node script
nodemon xxx.js Copy the code
www.cnblogs.com/jing-tian/p…
Node version switching tool
3.5 Download of scaffolding tools
3.5.1 track of vue – cli installation
See the website
Blog. Jijian. Link / 2021-03-26 /…
The React documentation does not explain how to create a project using NPX, unlike the react documentation which has a direct command to create a project using NPX.
React usage and NPX features can be used to estimate its usage.
npx @vue/cli create hello-vue
www.ruanyifeng.com/blog/2019/0…
NPX use tutorial
3.5.2 the create – app – react to install
See the website
3.6 Postman Installation and Download
Download address
- Let’s download it
- After the installation is complete, enter the Postman interface
-
Enter interface
3.7 Installing other Developer Tools
Install as needed according to your own project needs
- Wechat developer tools
- Alipay developer tools
HBuilder
- . Etc.
4. Install other tools
-
everything
- Quickly locate files and folders based on their names
-
notepad++
- A free code editor, common terms code audit and review
-
teamviewer
-
Or sunflower
-
Connect to a remote desktop anytime, anywhere
-
-
ToDoList
- Manage, plan and collaborate on tasks and projects
-
Good pressure
- Compression tools
5. Conclusion:
At this stage, you’ve installed your usual software, plug-ins, or tools for daily development, and you’re ready to start developing on your new computer.
Remember: don’t forget to add your usual plug-ins, software, and tools to the list for later configuration.