The code of self-cultivation of agricultural skills necessary

A, Typing

  As a programmer, typing ability is basic and essential skills, accuracy fingers typing + + speed, two-finger Zen is undesirable, it will certainly affect the coding rate.

  Specification typing technique combined with practice, you can make your typing speed of dancing, in here you can test your typing speed and gradual practice, practice to show my progress.

  Also need to continue to practice, of course, this requires a process, usually when coding is also the opportunity to practice.

二、Visual Studio Code(VS code)

  VS code is Microsoft out of a lightweight code editor, free, open source and powerful. Syntax Highlighting It supports almost all mainstream programming language, intelligent code completion, custom hotkeys, bracket matching, code snippets, code, contrast Diff, GIT and other features, support for plug-in extensions, and to do for cloud application development and web development optimized. Cross-platform software support Win, Mac and Linux.

  Other code editors may vary significantly Caton especially when opening large files, but is VSCode seconds to open.

  VS vode Features:

  Open source, free;

  Custom Configuration

  Git integrated
  intelligent prompts strong
  support various file formats (html / jade / css / less / sass / xml)
  debugging powerful
  variety of convenient shortcuts
  powerful plug-in extensions

  A collection of so many advantages, of course, to bring experience, in here , you can get VS code, the installation is complete open the VS code, you will see this interface

  The left side of the activity bar shows the VS code five main functions, top to bottom: Explorer, search, source code management (Git), run (commissioning), Extensions (extended)

  Open the folder, file, work area will be displayed in Explorer, where you can easily view the directory structure, open or close a file;

  In the search, you can specify a search for folders or files open, rapid positioning to the target at;

  VS code integrates Git function in the source code management office, you can see in real time what you make changes to the file, can be operated by opening a command line, complete the update Git repository;

  As for debug function editor, VS code by calling the native build environment to compile the program, opened in VS code is equivalent to the terminal end of the machine or git bath, etc., you can compile here, debugging run commands;

  Extensions are a powerful source VS code, a variety of rich and useful extension to meet your requirements, for example, you can install a Chinese language pack for your VS code by searching language here;

  VS code also supports a wealth of shortcut keys, let you get rid of the shackles of the mouse, in here , you can find everything shortcut keys you want.

Three, Git

  Git is a distributed version control system open source, can efficiently at high speed process from small to very large version of the project management. Compared to the centralized distributed biggest difference is that the developer can be made locally by each developer cloning (git clone), a complete copy of Git repository on the local machine. FIG perspective at three Git

  For developers new to Git, just need to know a few simple commands you can use a Git.

  First, install Git on this machine is the first step in using Git in here , you can get Git and installation, after the installation is complete, you can open GitHub's official website, where thousands of programmers sharing their development projects, where you can get a lot of help, if you want to project on GitHub, either your own or someone else's, to get local, you only need one line command: git clone <url> can be cloned into local.

  If you wish to submit a local git repository on GitHub, it is only a few lines of command:

  git add <filename> You can change the local staging, you can also use git add direct staging all changes.;

  git commit -m "modify" can be submitted to the local temporary changes to the local repository, generate a hash value of a string of forty, called git id, used to identify the version, in which the -m "" is in the description does commit;

  git push You can submit this update to a remote repository, in order to be consistent and remote repository, to avoid conflict, before you can push, the first update the local repository to the latest status of remote hosts via git pull command:

  Internet can now easily find all of the git command line operation, for example, in here , you can find a detailed explanation of each command.

  git practical operation:

  

  

Four, Vim

  Vim is developed from a vi text editor. Easy programming code-completion, and compilation errors jumps, etc. is particularly rich, it is widely used among programmers. Emacs and Unix-like systems tied for the user's favorite editor.

  vim main features include:

  According to the set and can be fully compatible with the original vi
  multi-buffer edit
  any number of split windows (horizontal, vertical)
  with a list of scripting languages and dictionary functions
  can be called in Perl scripts, Ruby, Python, Tcl, MzScheme
  word abbreviations features
  dynamic word finished up
  multiple undo and redo
  the corresponding text file over 400 kinds of syntax highlighting
  C / C ++, Perl, Java , Ruby, Python language other than 40 kinds of automatic indentation
  using ctags tags jump
  after a crash recovery file
  cursor save recovery position and the open state of the buffer (session function)
  may be a differential pair of two files, the diff mode synchronization
  remote file editing
  Omni-completion

  You can vim <filename> command to open a file for editing, if the file exists, you will directly open file editor, if the file does not exist, it creates the file in the current directory when you exit the save.

  Vim has three modes, just open the file, you would enter the command mode, this mode can not insert characters, but you can browse files, and other modes by entering the command

  I can enter the edit mode or a command to enter the edit mode flag is INSERT words appear at the bottom, then you can perform various operations on the text;

  By: + command to enter command mode, various instruction operation;

  One of the most commonly used three commands is <: wq> (save and exit), <: q> (quit, subject to change, will ask), <:! Q> (force quit without saving changes)

  Exercise

  

  1, enter the command mode <:% s / helloworld / test / g> replace the entire test helloworld

  2, in command mode input <: 1,5s / ^ / # / g>, the 1-5 line commented, was essentially replaced the text

  3, the normal mode to move the cursor to the beginning of the line to be copied, the input <nyy> replication, wherein n represents the number of rows to be copied, the bottom line shows the command "n lines yanked", it indicates that copy; subsequent movement of the cursor to pasting, press p or P, can be attached, wherein p is pasted on the next line, P is pasted on the line

  

五、Regular Expression

  Regular expressions (regular expression) describes a set of strings (pattern), can be used to check whether a string containing the certain substring, replacing the sub-string matching or removed from a string meet a certain criteria substring and so on.

  Through the regular expression design, can filter all kinds of strings, regular expressions variety of grammatical rules everywhere on the Internet, it is crucial to utilize;

  Reasonable rule: / [A-Za-z] + \ d * /

Guess you like

Origin www.cnblogs.com/meijlin/p/12582055.html