
今天(北京时间 2020 年 2 月 7 日),微软发布了 Visual Studio Code 1.42 版本,这也是 2020 年 VS Code 首次大更新。让我们来看看有哪些主要的更新。
支持预览重命名后的变更效果
在 diff 视图中查看待处理的重命名,并且可以十分方便地接受或拒绝更改。

开启编辑器窗口数量的限制功能
支持设置同时打开的最多的编辑器窗口数量。
具有以下几个选项:
workbench.editor.limit.enabled
:启用此功能(默认为关闭)workbench.editor.limit.perEditorGroup
:对每个编辑器组还是在所有组中应用此限制workbench.editor.limit.value
:打开的编辑器窗口的最大数量(默认为 10 个)

图中演示了限制为最多 3 个编辑器窗口数量的效果。另外要注意的是,具有未保存更改文件的编辑器窗口不会自动关闭,但仍会计入打开的编辑器总数中。
重新启动时还原所有窗口
VS Code 在启动时还原窗口的设置已更改为默认情况下还原所有窗口。如果要返回到以前的默认行为,请配置 "window.restoreWindows": "one"
以仅打开一个窗口。
高亮显示被折叠的代码区域
可快速查找采用新背景以高亮显示的代码折叠区域。

改进调试控制台(Debug Console)
支持语法高亮、括号匹配、以及输入历史记录和改进输入输出的显示方式。



定义全局任务
每个用户的任务可以在所有文件夹和工作空间中使用
远程开发
用于映射 SSH 和容器端口的新“转发端口”视图(Forwarded Ports view)
功能预览
时间线视图(Timeline view)、Search editor、针对 TypeScript 和 JavaScript 的语义高亮显示等(Semantic highlighting)。



浏览器支持
在浏览器中使用 VS Code 时,支持将本地文件拖拽到编辑器区域中打开。

更多完整内容,请查看 VS Code 官网的 Release Notes:
Visual Studio Code January 2020code.visualstudio.com
文章转载自 OSCHINA 社区 [http://www.oschina.net]
希望未来 VS Code 越来越好!
也欢迎大家参加我的知乎 Live,一起学习 VS Code 的强大,带你快速玩转 VS Code!