Java self-study guide five, coding tools

If you want to do well, you must first sharpen your tools...

 

For high-efficiency encoding output and fast text processing, you need

  • Familiar with the syntax of programming languages

  • Blind

  • Use at least one text editor proficiently

  • Use at least one IDE (Integrated Development Environment) proficiently

 

In reality, I have seen two-finger Zen coding. While thinking, the index fingers of the left and right hands tap on the keyboard. I looked at him quietly, and he replied, don't look at my slow typing, my mind is clear. The "brothers" whom the fingers touch every day are unfamiliar, and it is impossible to justify. Spend some time in the early stage of programming and deliberately practice typing to improve your professionalism.

 

A text editor is a tool that programmers use every day. No matter which text editor you use, mastering the following skills will definitely improve your ability and speed to process text:

  • String statistics in text

  • Letter case conversion

  • Line copy

  • Line move

  • Row merge

  • Target line

  • Delete blank lines

  • Column mode editing

  • How to use regular expressions in search and replace, such as adding a quotation mark to the end of each line?

  • Text formatting, such as text formatting in XML and JSON format

  • Go to matching brackets

  • Folded text

  • Word deletion

  • Word skip

  • Base conversion

  • Encoding conversion

 

If there are blind spots in the above operation, you can search for a wave, operate and remember.

 

 

Recommend several good editors:

  • Fans of VIM and Emacs, these two editors have been arguing which is the best to use. Getting started is a bit difficult, but it is fast when used well.

  • Notepad++, EditPlus, simple and compact

  • UltraEdit is relatively powerful, and I always feel cumbersome, so I use less now

  • Sublime Text, beautiful interface

  • markdown editor: MarkdownPad2, typora, Atom

 

 

Two IDEs that are widely used in China for Java coding:

  • IntelliJ IDEA

  • Eclipse

 

The use of IDE generally requires attention:

  • Search and replace regular, capitalization

  • Search and replace scope: current text, designated directory, working space

  • Skilled use of shortcut keys

  • Project import and export

  • Middleware configuration

  • Plug-in installation

 

Commonly used shortcut key functions:

  • Switch between code files

  • Active window switching

  • View the structure of the class

  • Search where classes, methods, and variables are referenced

  • Method extraction (if there are many identical codes, you can extract a public method)

  • Object names, variables, and methods are renamed (it can be done wherever it is called will be automatically replaced with new nouns)

  • Exception handling

  • New method to override the parent class

  • New construction method

  • Go back to last edit

  • Go forward or backward to the previous or next code edit

  • 回退之前的文本编辑

  • 回退之前的重构(批量改了对象名、方法名、变量名;方法的抽取)

  • 格式化代码

  • 批量导入引用类

  • 让 IDE 给出当前代码中的问题修复提示

  • 加 / 取消 注释

  • 加 / 取消 断点


Guess you like

Origin blog.51cto.com/15061941/2592805