The biggest update this time wasn't the multi-root workspace! Visual Studio Code1.18 released!
table of contents
- 1 The long-awaited multi-root workspace
- 2 Vertical split display of terminal and debug console
- 3 VScode Blue logo Icon is Back
- 4 Now automatically imported with JS/TS
- 5 Refactoring variables is now easier with JS/TS
- 6 Updated files are now easily visible in the Explorer pane
- 7 Source code can now be reviewed inline
- 8 Debugging tools are now easier to use
- 9 summary
Hello.
I'm Mandai, in charge of Wild on the development team.
The latest version of Visual Studio Code (VSCode), 1.18, has been released!
The highlight of this event is the multi-route workspace that all mankind has been waiting for!
That's what I thought, but there was a hidden gem.
The long-awaited multi-root workspace
Multi-root workspaces have finally been released.
To explain briefly, this is a big change to the concept of workspace defined by VSCode up until now, and what used to be "directory (folder) = workspace" has now been changed to "directory ∈ workspace". It will change.
Previously, only one directory could be opened in one window, so if you wanted to open another directory, you had to launch another window.
If these two directories contain completely unrelated information, that may be fine, but if you use them permanently, you may have to consider the hassle of starting a new window every time.
In such a case, you can quickly create a multi-root workspace and solve the problem in one go.
That's not the only benefit of being in the same workspace.
Ctrl + Shift + F , but of course this will also be included in the search.
When you create a multi-root workspace, a file like "test.code-workspace" is created.
The contents are JSON files that store information such as directories included in the multi-root workspace.
If you want to open a multi-root workspace in VSCode, you can easily open it by double-clicking this code-workspace file.
As an enthusiast's information, it seems that you can also create a multi-root workspace and add directories from the command line.
Vertical split display of terminal and debug console
In previous versions, the terminal was stuck at the bottom of the window and could not be moved, and the only options were to hide, show, and maximize, but now there is an option to display it on the right side of the editor.
Furthermore, by pressing the maximize button, you can make the editor area on the left much smaller and see the terminal larger.
VScode Blue logo Icon is Back
This is a bolt out of the blue!
In the last update, Orange Logo, which had been criticized one after another after another, and which had helped me increase my swearing English vocabulary, had unexpectedly left the company...!
It seems to depend on the condition of the OS's icon cache, so let's restart and wait. (In my Windows 10 environment, the icons changed after restarting.)
I just reconsidered Microsoft's attitude towards OSS.
Now automatically imported with JS/TS
Will I no longer encounter undefined errors around functions?
It's so lonely.
Refactoring variables is now easier with JS/TS
It targets refactorings that push the local to a broader scope.
The method is to convert it into a function and obtain it as an array, but I feel that it is less common than converting it into a function.
Updated files are now easily visible in the Explorer pane
It's a small thing, but it's nice to be able to see the update status in any pane.
Source code can now be reviewed inline
Accepting changes and reverting can now be done on a block-by-block basis.
It gets complicated when you are working on the same source in multiple windows (stable version and preview version, etc.).
Debugging tools are now easier to use
Up until now, to use the debug tool, you had to open the debug pane (or Ctrl + Shift + d ) and press the start button, but now you can start it from the button on the status bar. It has become.
If you are using something like nodemon, it may not be so important, but in my environment, nodemon crashes as soon as it breaks, so I no longer use it, and I have to restart it manually, so I'm grateful.
Additionally, a new shortcut has been added: Ctrl + F5.
This will start the program without any debugging tools attached.
This is also great for shortcut addicts.
summary
It turned out to be quite a difficult update, as the logo changed when I updated it in a multi-root workspace with a feeling of "Runrun♪" (dead word).
Honestly, I don't care about the other updates anymore.
The orange logo is rare, so the fact that it was used in an article about the previous version update to 1.17 may be a commemorative one.
In terms of functionality other than the multi-root workspace, I think this time there will be plenty.
I'm worried that I'll run out of updates soon.
That's it.