eclipse簡單配置 eclipse中使用github Eclipse 快捷鍵
阿新 • • 發佈:2017-08-25
space f11 鼠標 edi ctrl master 提交 col note
- 將eclipse壓縮包解壓到英文目錄下
- eclipse簡單配置
- 設置字符集
- Window——Preferences——General——Workspace——Text file Encoidng——Other——UTF-8
- 設置JDK路徑
- Window——Preferences——Java——Installed JREs
- 檢查路徑對應的是否為jdk,而不是jre。如果不是,要進行配置。
- 設置代碼格式
- Window——Preferences——Code Style——Formatter——edit——Braces——都選擇next line
- 在eclipse中使用github
- 註意:在提交代碼之前必須更新代碼
- 拷貝作業url https://github.com/Cheer201704/Homework
- 導入git工程
- File——import——Git——Projects from git——Clone URI ——next——next——選擇master分支——next——import as general project——Finish
- 修改或者添加提交的用戶名
- Window——Preferences——Team——git——Configuration——User Settings——Add Entry——
- user.name
- 用戶名
- user.email
- 郵箱
- 更新git工程
- 右擊工程——Team——Pull
- 提交git工程
- 打開Git工作臺
- Window——Show View——Other——Git——Git Staging
- 將修改、添加、刪除的文件從 Unstaged Changs 拖到 Staged Changes
- 編寫提交註釋/日誌
- Commit And Push
- 如果遇到提交不成功
- 右擊工程——Team——Push branch ‘Master‘... 將代碼推送至遠程倉庫
- Eclipse 快捷鍵
Ctrl + Shift + T(Type) | 打開類 |
Ctrl + Shift + R(Resource) | 打開任意文件 |
Ctrl + Shift + O(Organize Imports) | 引入jar包 |
Ctrl + O(Outline) | 展示類的基本信息 |
Ctrl + F(Find) | 查找內容 |
Ctrl + K | 選擇中字符後,向下查找 |
Ctrl + Shift + K | 選擇中字符後,向上查找 |
AIT + <- | 向後退 |
AIT + -> | 向前進 |
Ctrl + T | 將光標移至類名處,可以類繼承關系視圖;或者移至方法名處,可以查看方法被繼承關系圖 |
Ctrl + 鼠標左鍵 | 打開一個鏈接(類、方法) |
Ctrl + Shift + F | 格式化java代碼 |
AIT + Shift + A | 進入列編輯模式或者退出列編輯模式 |
F11 | 啟動調試 |
Ctrl + F11 | 運行程序 |
F5 | 單步進入 |
F6 | 單步跳過 |
Ctrl + Shift + X | 大寫 |
Ctrl + Shift + Y | 小寫 |
eclipse簡單配置 eclipse中使用github Eclipse 快捷鍵