This will tell VS Code that you want the file to stay open when you switch to a new file. Instead of single clicking on your files, (like I do in the previous GIF) double-click. Double-click your files instead of single-clicking. The next is to right-click the tab and select "Keep Open." The last is to execute the "Keep Open" shortcut (Ctrl + K Enter) while the tab is open and in focus. The most immediate, simple way to keep files open in VS Code is by double-clicking files in the explorer panel. If you're looking for the quick-fix, here it is: How do I make VS Code open files in a new tab? This quick guide will show you how this behavior works, how to work around it, why it exists, and how to change the default behavior if you wish. This can get frustrating if you have no clue what's going on or you're coming from a different text editor that does not have this behavior by default. Sometimes when you click on a file in the explorer panel, you want it to open in a NEW tab, instead of replacing the file that you're currently working on. Your new workaround becomes always having to edit a file to get it to stay open - even if it doesn't need to be edited! It's time to solve this. Soon, you discover that a file will stay open once it's been edited. Every time you go to swap files, the one you were JUST working on disappears, and you have to find it again in the explorer panel. So one day while you're hacking away you realize that VS Code just doesn't want to let you keep your file tabs open.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |