Manual eclipse

   哈哈,使用eclipse也有一段时间了,从当初的懵懂无知到现在的小有了解,
   我准备写一篇eclipse新手使用教程,给刚接触这个软件的新手一些帮助。

1. Create a Project

  1. Build a Java project (named after has been finished and direct point next point finsh).Here Insert Picture Description
  2. Packages, classes' interfaces, and so created are as shown below, their process is the same.Here Insert Picture Description

2. Use the shortcut keys

Ctrl + shift + L: Displays all shortcuts

Commonly used keyboard shortcuts:

  1. ctrl + D: Delete this line

  2. alt + /: prompt (for example, you want to enter the main function, can be a very long main, this time can be automatically generated by the shortcut keys that moment)
    Here Insert Picture Description

     在这儿说一件啼笑皆非的事情: 大家都知道System.out.println();这个代码 吧。
      我一开始认为我输出println它就会有提示,但是事实上并没有。
      我就纳闷了,这关键字就是println啊,怎么就没有呢,后来,才发现只要输出sys它就有提示了。
    
  3. ctrl + a: Select

  4. ctrl + c: Copy

  5. ctrl + v: Paste

       enmm,这三个可以凑成一套剽窃大法。哦吼吼。
    
  6. ctrl + shift + o: automatically imported package

  7. ctrl + F11: run

      此处必须要说明以下了,作为一个新新新手,我曾经发出疑惑,为什么我这么按不行,
      后来由于电脑不一样,有些电脑 F11=Fn+F11 .
    
  8. shift + 0: restore the cursor.

     我解释一下什么叫做光标恢复:
     有时候会发现,光标突然变成黑色的小方块而不是一条竖线了,
     这时候写代码会很麻烦,容易吞代码,把它恢复成原本样子,这个就叫做光标恢复。
    

3. Project Import Export

Import:

  1. Click the fileHere Insert Picture Description
  2. Click to importHere Insert Picture Description
  3. 选择Existing Project into WorkspaceHere Insert Picture Description
  4. Click to select the project path you want to import selected, click finish

Here Insert Picture Description

Export:

  1. Select the items you want to export
    Here Insert Picture Description
  2. Select exportHere Insert Picture Description
  3. Select the Archive File General inHere Insert Picture Description
  4. Click to select the project path you want to import selected, click finishHere Insert Picture Description

4.debug mode on and off

  1. Establish endpoint: Double-click breakpoints can be set up in the red circleHere Insert Picture Description
  2. Enter debug mode operationHere Insert Picture Description
  3. Enter debug interface (Click the red circle)Here Insert Picture Description
  4. ctrl + F11 to jump into the next breakpointHere Insert Picture Description
  5. Back before the screen just press circle atHere Insert Picture Description
Released two original articles · won praise 2 · views 46

Guess you like

Origin blog.csdn.net/qq_45020745/article/details/103945097