Adding TS sections
This commit is contained in:
Родитель
7a1cdbdee2
Коммит
afa9485ace
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b516851e19102426aa32ffb10369bdd8e10d7079dec0ee08d041a38ec56f61c1
|
||||
size 1656191
|
|
@ -109,6 +109,20 @@ You can now enable format on save for notebooks. This formats the entire noteboo
|
|||
|
||||
## Languages
|
||||
|
||||
### TypeScript 5.0
|
||||
|
||||
VS Code now ships with TypeScript 5.0.2. This major update brings new TypeScript language features, improved performance, and many important improvements and bug fixes. You can read about TypeScript 5.0 [on the TypeScript blog](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/).
|
||||
|
||||
### Switch case completions for JavaScript and TypeScript
|
||||
|
||||
We now help scaffold out switch statements over literal types in JavaScript or TypeScript:
|
||||
|
||||
<video src="images/1_77/ts-case-completions.mp4" placeholder="images/1_77/ts-case-completions.mp4">
|
||||
Sorry, your browser doesn't support HTML 5 video.
|
||||
</video>
|
||||
|
||||
Just type `case` inside of the switch statement and accept the suggestion for `case ...`. This will automatically insert cases for all values of this type. Note that this only works when the value being switched over is a union or literal type.
|
||||
|
||||
## VS Code for the Web
|
||||
|
||||
### .gitignore support
|
||||
|
|
Загрузка…
Ссылка в новой задаче