Every time I switch tabs on VS Code the content of the tab is being reloaded. It might not be a problem when developing on local machine, but I'm connected to a remote a machine using WinSShFS.
Can I cache the file locally and only access the remote server on save and first load?
Thanks,
Unfortunately, not at this time. When you switch to a tab that has a file from a network drive open, Visual Studio Code reloads said file. That's an issue with the way Visual Studio Code's tabbing system was originally designed
The Visual Studio Code team has an item in their backlog that includes this specific "problem". It would appear that this isn't a priority for them yet, so a time-frame for when you could expect a fix for this, cannot yet be provided.
Related
I've built a new pc, and I'm trying to transfer all my VS Code settings from my old pc to my new one. And I came across Settings Sync within VS Code. I sign in on both machines using my GitHub account. I click Sync Now, it somewhat works in that only five of my extensions show up on my new PC, I have over 100. But then on my old pc all but those same 5 extensions
for some reason, gets removed.
For a brief moment, I was able to get all my extensions back on my old pc by clicking in the sync activity (remote) tab and restoring to a previous state. The problem is, whenever I open a new window, they're gone again. Now when I try to restore a previous state, it just loads those same 5 extensions only.
I came across this post Recover lost settings + extensions and more?
And I tried JΛYDΞV's suggestion. I can see the backup JSON files which contain info for all my extensions when I view it in Windows explorer. However, when I try to view them in VS Code under the Sync Activity (Local) panel, I get this error:
Cannot read properties of undefined (reading 'id')
Would anyone have any other ideas as to how I can get my extensions back on either machine?
I should also add that before I tried any of this I did actually copy the entire VS Code folder under AppData\Roaming to an external hard drive and for the heck of it overwrote that same folder on my new pc just to see if that would remedy the problem, but then however no extensions show on my new pc.
Would anyone have any more steps I could try? The last thing I would want to do is to have to add all those extensions again
The idea behind this question, is have my document upfront, right on the sidebar, a split between files and upload to GitHub, and down below the terminal, in all projects starting now, I open every time my projects! I saw different questions on the platform, but didn't accurate answer to that, I thought.
Thanks,
Miguel.
You should take a look at documentation which explains that in VS Code there are 2 modes for saving a setup of IDE - user settings and workspace settings.
Your modifications were probably saved in current workspace so when you open a fresh instance of VS Code by default you are using global user settings.
By default, it keeps the same screen.
when in Visual studio code when open with live server tab keeps refresing, I am makeing passenger count app from scrimba and there is increment and save button, when I open html file from visual studio code with live server I can't use increment and save button because it keeps refresing i tried stop refresing extension, and Meta refresing disable,even used other browser but it still refresing in other browsers, it is up to live server from VSC, can anyone help, thank you,
Found on stack overflow someone had same problem and there was an answer that some script is running in background of Visual Studio Code and google says that ctrl+alt+M should stop it but when I try ctrl+alt+M it just type this simbol §, does anyone know other way to stop that script
Using Visual Studio Code I have installed a few extensions (like Guidelines showing vertical dotted lines between pairs of matching brackets). When I start VS Code I can see all my extensions working fine in the Editor window.
However, when I switch to another tab within VS Code, I no longer see the Guidelines or evidence of any extension working in the new editor tab. Worst of all, when I then switch back to my original tab, all the guidelines etc that were there a few seconds ago are gone!
To fix the issue I have to restart VS Code. This can't be right! Has anyone hit the same problem?
I have tried uninstalling VS Code where it warns me some components could not be uninstalled and I have to do them manually. It doesn't tell me which. When I then reinstall, the extensions are visible (without me reinstalling them) but again I hit the same issues as above.
Please help?
Seems like having too many extensions installed, or perhaps one that is misbehaving behind the scenes, causes this problem. Reduce the number of installed extensions. Use Help->Developer Tools -> Console to see if there are any messages relating to the Extensions server
I'm completely new to source/version control and I recently decided to try out the Visual Studio online service (the renamed TFS online service). I ran into a problem and now I'm not sure if I'm doing something wrong or is the VSOnline service faulty.
Problem is as follows:
Completely working Windows phone 8 project. Compiler and debugger working as expected in VS13 ultimate (also in VS12 pro).
However, when I add the project to source control and check it in. Then check it back out it breaks.
Symptoms:
1) XAML markup not recognized. IntelliSense reports error for every single XAML tag, even fundamental tags like Phone:PhoneApplicationPage. These errors can be cleared if I change from debug to release mode, but they re-appear when I launch project next time.
2) Debug target not changeable. In the dialog where you can typically choose between device and different emulator modes there is only one option "start". Impossible to deploy app on actual device. "Start" always launches default emulator (which works fine, no bugs there), but you can't choose which emulator.
3) VS13 crashes when I try to open debug tab in project properties/settings.
4) Attempt to build the solution in VSonline fails.
I realize there is a possibility I'm doing something wrong. Never used source control before, but in my understanding I still should be able to handle the project completely normal after check-out. Restrictions to debugging or deploying to device would seem counter-productive to me.
And also the false errors and VS13 crashing in settings implies there is something broken.
Any opinion, advice or help will be hugely appreciated.
After few days of relentless effort I was able to solve the problem.
As I work from home and my own computer, I'm always logged in with my personal account.
And I was logged in visual studio with my work account which has the MSDN subscription.
This caused account clash and all the odd behavior. Logging out from all browser didn't help, it mysteriously kept my personal account always logged in. And I believe this is caused by Skydrive.
So I set up new user account for my work id, log in using that and all started working perfectly.
Bottom line: If you wish to use visual studio online or log in in VS, make sure you are logged in with same account on the computer.