用VS code使用Java
作者薰Shin
文章目錄
How to start?
- 下載vs code
- 套件安裝(共4~5個)
- 拉 存程式的資料夾 到 VS Code,直接複製貼上到word即可
第一步 下載VS Code
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(若看不到,對圖片按右鍵,在新分頁中開啟圖片)
第二步 套件安裝
網頁用套件
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
Java用套件
- Language Support for Java™ by Red Hat - Visual Studio Marketplace
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
用來辨認編譯程式碼為Java
- Debugger for Java - Visual Studio Marketplace
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
用來讓Java除錯
- Terminal - Visual Studio Marketplace
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
命令提示字元 VS Code版
- Test Runner for Java - Visual Studio Marketplace
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
一樣用來讓Java除錯
第三步 拉存程式的資料夾
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(若看不到,對圖片按右鍵,在新分頁中開啟圖片)
用來改程式碼顏色
讓程式碼更易辨識及閱讀。
容易產生的突發狀況
1. 背景主題顏色,隨複製程式碼,一併貼上word
如下圖
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(若看不到,對圖片按右鍵,在新分頁中開啟圖片)
如何解決?
💡 編輯器背景主題記得一律淺色預設!!!
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(若看不到,對圖片按右鍵,在新分頁中開啟圖片)
若用到暗黑模式或其他主題,貼到word中則會呈現底色問題。
2. 中文部分程式碼出現亂碼
💡 若中文部分產生亂碼,將ANSI 變成 Big8!!!
Image Not Showing
Possible Reasons
- The image was uploaded to a note which you don't have access to
- The note which the image was originally uploaded to has been deleted
Learn More →
(若看不到,對圖片按右鍵,在新分頁中開啟圖片)
因為vscode無法讀取ANSI的編碼,所以改回UTF-8他就會正常讀取了。
參考文章 :
VSCODE运行java代码,中文乱码解决方法_jfztaq的博客-CSDN博客
用來編譯
找機會再補充。
最後
更多文章
< 上一個 dataStructures第一週 下一個 dataStructures第二週 >
最後更新日期
第一版2021 9 24 , 9:12 PM
最後版2021 9 24 , 9:12 PM