這次 VS Code 更新到 v1.58 版本啦!利用這篇文章來分享幾個本人覺得還滿值得一提的新功能吧!
比較有感的更新
繁體中文介面!
雖然英文介面已經用很習慣,但繁體中文用起來也還滿新鮮的!

Terminals in the editor
現在可以將 terminal 建立或是移動到程式碼編輯的那個區塊,這個彈性還滿方便的,之後就不用被限制 terminal 只能放在下方了!
移動和新增的方式有四種,個人覺得第 2 點的直接拖曳 tab 感覺最方便
- Create via the Create Terminal in Editor Area command.
- Drag and drop a terminal from the tabs list to the editor.
- Run Move Terminal into Editor Area with a terminal focused.
- Select Move into Editor Area on the terminal tab context menu.



Jupyter Interactive window
這個可以讓 py 檔直接選取想要執行的程式碼,就會開啟另一個視窗,在 jupyter 互動式視窗中執行該程式碼,但我個人比較常直接使用 terminal 去執行 py 檔
倒是覺得 jupyter 介面的更新還不錯!
之前的 jupyter 用起來總覺得哪裡卡卡的,這次更新後的介面整體用起來很舒適,感覺有種更相容的感覺 XD
但有時候會有一些執行 cell 之類的圖示擋在 cell 上方,偶而會遮到我想要看的第一行 code,但我猜習慣之後應該不是太大的問題

‘Open in VS Code’ badge
這功能主要是放在 GitHub repo 上,可以讓使用者快速以 VS Code 開啟 repo,比較適用於各種開源專案的維護者使用
Data Science tutorials
這個主要就是 VS Code 有整理了一些 Data Science 相關的使用教學與範例,讓大家能快速上手,包含像是:
- Jupyter Notebooks 教學
- Python Interactive window 教學
- Data Science 教學,當然最經典的:「分析鐵達尼號的乘客資料」也有喔!
修正 MacOS 無法使用 code .
開啟資料夾 的問題
我個人目前主要是使用 MacOS,之前確實有一陣子都沒辦法用這方法開啟資料夾,好險這次更新也有把這 bug fix 放進來
其他更新
其他更新的部分我個人比較少用,或是有些要自訂的覺得暫時用不到,就把清單放在底下,有興趣的話再點進去看看吧!
- Jupyter notebook debugging – Debug Jupyter notebook code from within VS Code.
- Workspace Trust – Quickly customize Workspace Trust settings, disable Restricted Mode banner.
- Markdown preview KaTeX support – Math support in the Markdown preview.
- Editor scroll bar customization – Set bar visibility and width, click navigation behavior.
- Settings editor improvements – Support for multiple checkboxes and enumeration dropdowns.
- Sticky debug environment choice – Debugger remembers your previous environment choice.
參考資料與圖片來源:https://code.visualstudio.com/updates/v1_58
歡迎追蹤我的 Facebook 粉專:https://www.facebook.com/jumpingcoder
[…] 快速了解 VS Code 最新更新!聊聊 v1.58 的新功能 […]
讚讚