Eclipse common settings

Every programmer will set some common functions when they get a new eclipse, which can help us improve the efficiency of development, so here we record the common configuration items of eclipse.

  • In eclipse, the default Text file encoding is GBK (the operating system is Chinese simplified); if the operating system is Chinese traditional, the default is MS950 (Big5), and most projects use UTF-8. Settings: Windows -> Preferences -> General -> Workspace -> Text file encoding -> Other  , modified to UTF-8
  • Set proper font size  Windows -> Preferences -> General -> Editors -> Text Editors -> Colors and Fonts -> Text Font 
  • The code automatically prompts  Window -> Preferences -> Java -> Editor -> Content Assist -> Auto Activation . The default setting is to enter ".", and then the prompt will appear. If you want to be prompted for everything, you can modify the second item "Auto Activation Triggers for Java" here, and  change the "." to "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", so that every letter will be prompted.   
  • Set JSP file encoding  Window -> Preferences -> Web -> JSP Files -> Encoding  (usually set to UTF-8)
  •  Set the path of JDK's local JavaDOC API and source code   to set JDk:   Window -> Preferences -> Java -> Installed JREs , click Edit on the right; select all jar packages under JRE system libraries , click Source Attachment on the right, and select External Location , Select the src.zip file in the JDK installation directory and click OK!  

Guess you like

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