Eclipse set font, character encoding, shortcut keys

1. Set the font:

  preferences->general->appearnce->colors and fonts->edit->font size 14, font conventional, font Consolas

2. Set character encoding:

  general->workspace->other:选择utf-8,apply

3. Set shortcut keys

  The picture looks like this:

  

  Some commonly used shortcut keys:

    alt+/ Code Assistant completes some code insertion
    Ctrl+1 Quick fix
    Shift+Enter Insert a blank line in the next line of the current line (the mouse can be anywhere in the current line, not necessarily at the end)
    Ctrl+Shift+Enter in Insert a blank line in the current line (the principle is the same as the previous one)

    Ctrl+D: delete the current line
    Ctrl+Alt+↓ Copy the current line to the next line (copy increase) //The conflict is: ctrl+↓
    Ctrl+Alt+↑ Copy the current line to the previous line ( Copy and increase) //The conflict is as follows: ctrl+↑
    Alt+↓ The interaction position between the current line and the next line (especially practical, you can save the first cut and paste)
    Alt+↑ The current line and the upper line interactive position (same as above)

    Ctrl+Shift +F Format the current code
    Ctrl+F Find and replace
    Ctrl+Shift+X Change all the currently selected text to lowercase
    Ctrl+Shift+Y Change all the currently selected text to lowercase
    Ctrl+/ Comment the current line or the selected line, and then Press to uncomment
    Ctrl+Shift+/ Comment the selected line
    Ctrl+Shift+\ Uncomment

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325231525&siteId=291194637