欢迎来到 Visual Studio Code 的 11 月份更新. 在这个版本中有很多重要的更新,希望你们会喜欢,一些主要的亮点更新包括:
-
Hot Exit - 快速切换上下文且永不不丢失更改
-
Focus on Your Code - Zen 模式、可配置活动栏等功能增强
-
Settings improvements - 配置 VS 代码的新体验
-
New Selection menu - 轻松发现和使用编辑器选择命令
-
Faster Text Search - 无论项目有多大,都能快速找到代码
-
Snippet authoring - 在代码段中使用变量
-
Keyboard shortcuts - 使用命令参数创建自定义快捷方式,找到热门的 Keymaps
-
JavaScript IntelliSense in HTML - 在 HTML 文件中获得完整的 JavaScript 语言支持
-
UI for Multitarget Debugging - 启动同时调试会话
-
TypeScript 2.1 - 使用最近更新的 TypeScript 并改进了语言支持
-
JavaScript - 支持 Object Rest/Spread
The release notes are arranged in the following sections related to VS Code focus areas. Here are some further updates:
-
Workbench - 新视图选择器,集成终端改进,macOS 主题标题
-
Settings - 搜索并轻松编辑设置,找到键盘映射扩展
-
Editor - Git Clone,新编辑器设置,Sublime Text 兼容性
-
Languages - CSS 应用规则、Markdown 自定义预览、TSLint 和 ESLint 扩展更新。
-
Debugging - 通过 IntelliSense 轻松添加启动配置作为片段
-
Node.js Debugging - Just My Code, load environment variables from files, help for sourcemaps.
-
Extension Authoring - 严格的空检查、片段完成、调试器扩展更新。
Languages
JavaScript language support in HTML
Coding assistance for JavaScript embedded in HTML is back! You get code completions and signature help for DOM and JQuery APIs, validation, hovers, Find References and Go To Definition, symbol highlighting and outline (Ctrl + Shift + o) and format. Note that the language support doesn't follow script includes, it only knows about definitions made in the same file.
CSS improvements
The CSS language support can now handle the new @apply rule.
CSS in HTML was also improved, in particular for styles defined in attributes: