Ideal when you have multiple VS Code instances, use VS Live Share, or use VS Codes Remote. Now that I have these really handy one-click icons for opening my projects, I thought, “ How cool would it be if it kicked off the commands to start the project too!” Apparently, that’s what Tasks are for, and it wasn’t too hard to set up (thanks, Andrew!). Subtly change the color of your Visual Studio Code workspace. Launch terminal commands when opening a project Workspace files have special little icons like this: In the Add Folder to Workspace dialog, select the folders. They are actually quite useful as files, because I can put the files in my Dock and one-click open my Workspace just how I like it. Open the Command Palette (Ctrl+Shift+P) and select the File: Add Folder to Workspace. code-workspace files into a local folder. (I’d avoid the repo itself, just because I don’t want to force my system on anyone else.) It’ll make a file, I thought, and I don’t really have a place for files like that. I knew what it meant, but I was too lazy to deal with it. This applies to all instances of VS Code that you open. When you do that for the first time and then close the VS Code window, it will ask you if you want to save a “Workspace.” Meh, maybe later, I always thought. Global versus project configuration Global configuration is your user configuration. Now I can search across both projects and basically just pretend like it’s one big project. This means I don’t need to deal with my symlinks anymore. We kind of have a “duo repo” thing going on at CodePen (one is the main Ruby on Rails app, and one is our microservices), and now I can open them both together: Multiple folders open at once. , it’ll bring up your unsaved files directly. If you go into each one of those and run code. I always assumed when you had a project open, it was one top level root folder and that’s it, if you needed another folder elsewhere open, you would open that in another window. At that Backups folder location, you can also look at the workspaces.json file it will list the nice directory path for each project directory which corresponds to the hashed directory names. I had a project folder open in VS Code like I always do, and I added another different root folder to the window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |