分享Java常用開發(fā)編輯器工具
1.editplus
1.1 官方下載
https://www.editplus.com/
官方下載最新的64位
2 .解壓就可以使用
2.1 vscode
vscode是微軟推出的免費,開源的代碼編輯器工具
2.2下載
2.3 解壓建立data
在程序目錄中,建立一個data目錄
2.4軟件常用配置方式settings.json
{ ? ? "window.zoomLevel": 0, ? ? "workbench.iconTheme": "vscode-icons", ? ? "workbench.startupEditor": "newUntitledFile", ? ? "window.menuBarVisibility": "toggle", ? ? "workbench.activityBar.visible": true, ? ? "editor.fontFamily": "Consolas, 'Courier New', monospace", ? ? "editor.fontSize": 18, ? ? "editor.lineHeight": 25, ? ? "editor.lineNumbers": "on", ? ? "editor.mouseWheelZoom": true, ? ? "editor.renderLineHighlight":"all", ? ? "files.autoSave": "afterDelay", ? ? "liveServer.settings.donotShowInfoMsg": true, ? ? "vsicons.dontShowNewVersionMessage": true, ? ? "breadcrumbs.enabled": true, ? ? "editor.minimap.enabled": false, ? ? "workbench.colorCustomizations": { ? ? ? ? //"editorLineNumber.foreground": "#17a346", ? ? ? ? //"editorGutter.background": "#02023011", ? ? ? ? //"editorCursor.foreground": "#d41313", ? ? ? ? //"editor.background": "#eeeeee00", ? ? ? ? "editor.lineHighlightBackground": "#2f5ad109", ? ? ? ? "editor.lineHighlightBorder": "#ced4d000" ? ? }, ? ? "emmet.variables": { ? ? ? ? "lang":"zh-CN", ? ? ? ? "charset": "utf-8" ? ? }, ? ? "[html]": { ? ? ? ? "editor.defaultFormatter": "vscode.html-language-features" ? ? }, ? ? "diffEditor.renderSideBySide": true, ? ? "workbench.statusBar.visible": true, ? ? "liveServer.settings.host": "localhost", ? ? "liveServer.settings.port": 80, ? ? "liveServer.settings.AdvanceCustomBrowserCmdLine": "", ? ? "editor.suggestSelection": "first", ? ? "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue", ? ? "files.exclude": { ? ? ? ? "**/.classpath": true, ? ? ? ? "**/.project": true, ? ? ? ? "**/.settings": true, ? ? ? ? "**/.factorypath": true ? ? }, ? ? "vscodeGoogleTranslate.preferredLanguage": "Catalan", ? ? "diffEditor.ignoreTrimWhitespace": false, ? ? "open-in-browser.default": "D:\\Program Files (x86)\\chrome\\chrome.exe", ? ? "open-php-html-js-in-browser.customBrowserPath": "D:\\Program Files\\chrome\\chrome.exe", ? ? "settingsSync.ignoredExtensions": [ ? ?? ? ? ], ? ?? }
2.5vscode使用說明及快捷方式
vscode version 1.51.0 Readme
- 1)配置啟動方式,設(shè)置擴展配置本地化 .vscode .code
- 桌面快捷方式啟動參數(shù) vsc\Code.exe --extensions-dir .vscode --user-data-dir .code
- 也可以不使用快捷方式,直接建立一個data目錄也可以。
- 2)設(shè)置軟件中文 英文,先安裝擴展Chinese(Simplified) 插件
- 按下ctrl + shift + p 命令面板 輸入config display language 點擊可以選擇en 也可以選擇zh-CN 也可以下載其它語言
- 3)修改emmet本地模板文件語言及文檔標題 lang="zh-CN" <title>Document</title>
- 打開vsc/resources/app/extensions/emmet/dist/node/emmetNodeMain.js 文件
- 1:Document 1:http://example.com lang:"en",locale:"en-US",charset:"UTF-8" 大約5657行l(wèi)ang=zh,大約5097行設(shè)置設(shè)置網(wǎng)頁標題
- 4)snippets 代碼段提示 輸入按下tab鍵,代碼段文件位置vsc/.code/User/snippets/wyl.code-snippets
- 5)常用快捷鍵
常用快捷鍵:
- ctrl+shift+w 關(guān)閉所有打開的文檔窗口(默認不是自己設(shè)定的)
- alt+/ 代碼提示快捷鍵(默認是ctrl+space)
- ctrl+x 剪切當前行
- ctrl+shift+k 刪除當前行
- alt+shift+up(down) 向上復制代碼行
- alt+up(down) 向上移動代碼行
- ctrl++ 窗口增大
- ctrl+- 窗口縮小
- ctrl+0(數(shù)字鍵盤) 窗口恢復默認
- ctrl + mouseWheelZoom 設(shè)置編輯器字號大小寫(settings.json 配置"editor.mouseWheelZoom": true)
- ctrl+/ 注釋取消注釋當前行
- alt+shift+a 塊注釋
- alt 設(shè)置快捷鍵為ctrl+shift+alt+f1 臨時顯示菜單
- alt+shift+f 格式化文檔
- ctrl+b 打開左活動面板
- ctrl+j 打開關(guān)閉面板
- ctrl+` 打開終端面板,可以輸入live-server
- ctrl+g 快捷進行指定行代碼位置
- ctrl+shift+t 快速翻譯當前選中的詞匯(需要安裝Yao Translate翻譯插件)
- F2 修改內(nèi)容或修改文件名
- ctrl+shift+alt+F12 打開瀏覽器使用live-serve服務(wù)器,直接瀏覽當前網(wǎng)頁
- ctrl+shift+alt+f1 菜單 開關(guān)
- ctrl+shift+alt+f2 左側(cè),活動條 開關(guān)
- ctrl+shift+alt+f3 show breadcrumbs 開關(guān)
- ctrl+shift+alt+f4 show minimap 開關(guān)
- ctrl+shift+alt+F6 狀態(tài)條開關(guān)
2.6為vscode增加鼠標右鍵功能
- addmouseright.inf
[Version] Signature="$Windows NT$" [DefaultInstall] AddReg=VSCode [VSCode] hkcr,"*\\shell\\VSCode",,,"Open with Code" hkcr,"*\\shell\\VSCode\\command",,,"""%1%\Code.exe"" ""%%1"" %%*" hkcr,"Directory\shell\VSCode",,,"Open with Code" hkcr,"*\\shell\\VSCode","Icon",0x20000,"%1%\Code.exe, 0" hkcr,"Directory\shell\VSCode\command",,,"""%1%\Code.exe"" ""%%1"""
- delright.reg
Windows Registry Editor Version 5.00 [-HKEY_CLASSES_ROOT\*\shell\VSCode] [-HKEY_CLASSES_ROOT\Directory\shell\VSCode]
2.7 用戶代碼段設(shè)置
2.8清除每次執(zhí)行java程序的一組長字符串
3.Eclipse
myeclipse是eclipse的插件,
3.1 eclipse基本安裝使用
(1)、下載eclipse www.eclipse.org
(2)、解壓,直接啟動開發(fā)工具
如果啟動不了,jdk開發(fā)環(huán)境變量沒有配置好
(3)、建立項目,編寫代碼,并運行程序
3.2 Eclipse隱藏菜單欄
3.3關(guān)閉spelling檢查
3.4啟動自動保存功能
3.5代碼皮膚 代碼樣式
http://www.eclipsecolorthemes.org/ 下載epf 在eclipse 文件菜單 選擇import 導入
3.6中英互譯項目
(1)、eclipse 建立項目
(2)、打開jsoup.org網(wǎng)站下載jsoup jar文件
(3)、eclipse項目中的點擊項目名稱,粘貼jar到項目中
(4)、點擊jsopu-1.13.1.jar文件,右鍵建立classpath
(5)、編寫src/cn/webrx/Dict.java
package cn.webrx; import java.io.IOException; import javax.swing.JOptionPane; import org.jsoup.Jsoup; public class Dict { ?? ?public static void main(String[] args) throws IOException { ?? ??? ?String w = JOptionPane.showInputDialog("請輸入詞匯:"); ?? ??? ?String u = "http://www.youdao.com/w/eng/" + w + "/#keyfrom=dict2.index"; ?? ??? ?JOptionPane.showMessageDialog(null,Jsoup.connect(u).get().select("div[class=trans-container]").get(0).text()); ?? ?} ?? ?public static void f360(String[] args) throws IOException { ?? ??? ?String w = "public"; ?? ??? ?String u = "https://www.so.com/s?q=" + w; ?? ??? ?System.out.println(Jsoup.connect(u).get().select("div[class=mh-translation]").get(0).text()); ?? ?} }
package cn.webrx; import java.io.IOException; import javax.swing.JOptionPane; import org.jsoup.Jsoup; public class Dict { ?? ? ?? ?public static void main(String[] args) throws IOException { ?? ??? ?String w = "太陽"; ?? ??? ?String u = "https://cn.bing.com/dict/"+w; ?? ??? ?System.out.println(Jsoup.connect(u).get().select("span[class=def b_regtxt]").get(0).text()); ?? ?} ?? ? ?? ? ?? ? ?? ?public static void baidu(String[] args) throws IOException { ?? ??? ?String w = "hello"; ?? ??? ?String u = "https://www.baidu.com/s?wd="+w+"&ie=UTF-8"; ?? ??? ?System.out.println(Jsoup.connect(u).get().select("span[class=op_dict_text2]").get(0).text()); ?? ?} ?? ?public static void mayouda0(String[] args) throws IOException { ?? ??? ?String w = JOptionPane.showInputDialog("請輸入詞匯:"); ?? ??? ?String u = "http://www.youdao.com/w/eng/" + w + "/#keyfrom=dict2.index"; ?? ??? ?JOptionPane.showMessageDialog(null,Jsoup.connect(u).get().select("div[class=trans-container]").get(0).text()); ?? ?} ?? ?public static void f360(String[] args) throws IOException { ?? ??? ?String w = "public"; ?? ??? ?String u = "https://www.so.com/s?q=" + w; ?? ??? ?System.out.println(Jsoup.connect(u).get().select("div[class=mh-translation]").get(0).text()); ?? ?} }
3.7 eclipse 建立javaee 項目
下載tomcat解壓配置:
4. Intellij IDEA
4.1下載
4.2解壓注冊
4.3配置
編輯器工具打開f:/ij/bin/idea.properties核心配置文件修改如下
4.4啟動idea并注冊
http://idea.medeming.com/jet/
http://idea.medeming.com/jetbrains/
5.JRebel激活破解
5.1服務(wù)器地址監(jiān)聽服務(wù)器地址
http://jrebel.cicoding.cn
http://jrebel.cicoding.cn/guid
http://jrebel.cicoding.cn/43B6551C-9785-CEA6-05DF-10AC0AF49AA7
5.2注冊如圖
到此這篇關(guān)于分享常用Java開發(fā)編輯器工具的文章就介紹到這了,更多相關(guān)Java開發(fā)工具內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
比較java中Future與FutureTask之間的關(guān)系
在本篇文章里我們給大家分享了java中Future與FutureTask之間的關(guān)系的內(nèi)容,有需要的朋友們可以跟著學習下。2018-10-10idea之Recompile、Rebuild和Build之間的區(qū)別及說明
這篇文章主要介紹了idea之Recompile、Rebuild和Build之間的區(qū)別及說明,具有很好的參考價值,希望對有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-08-08Springboot+AOP實現(xiàn)返回數(shù)據(jù)提示語國際化的示例代碼
這篇文章主要介紹了Springboot+AOP實現(xiàn)返回數(shù)據(jù)提示語國際化的示例代碼,本文給大家介紹的非常詳細,對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-07-07