Visual Studio Code autosave when run code from Unity3D - unity3d

I installed VS Code to use with Unity. Everything is great except for one small annoyance. When I edit my source code in Code and switch to Unity to run my game, the code is not automatically saved. I have to manually save the VS Code before switching.
I checked settings, but could not find anything. Is there anyway to effect this?

This works fine for me, is this option visible to you?

Related

Visual Studio Code theme issue

I am irritated by this. I tried uninstalling all the themes (I guess), but still the theme does not seem to be working.
How do I fix this?
When the IDE is untouched for few seconds, this comes up like the old screen saver we had in Windows covering up the entire VS Code slowly.
It doesn't seem to be a theme in my opinion. Perhaps, some issue with the display driver.
You can always try reinstalling vscode, just make sure to sync your settings if you've customized vscode .
If the issue persists, you can try changing the graphics settings by selecting display settings from Window's right click context menu -> selecting graphics settings and adding VScode to the list by browsing to its exe location, and then select power saving to make vscode use the integrated GPU if you're on a laptop.

Visual Studio Code Save All button issue

Visual Studio Code Save All button is always enabled even without any file changes. How can we solve this issue? Ideally it should be grayed Out if no file changes are there in the workspace.
It's an intentional feature, just in case someone is not sure if they saved their files, VS Code will always show it to prevent closing without saving (besides the exit prompt).
Now, if for some reason they decided to change this, it would we worse, as people are used to the always blue button.

Attach debug to process Unity doesn't work

I created new 3d unity project, then in asserts I created c# script if I click on it twice Visual Studio 2017 is opened. Then I would like to make a debug, so I set debug point and click in Unity on play button and nothing happes.
There is no attach button or something like this.
What am I doing wrong?
This happens randomly to me as well. The way I fix it it to go Unity->Edit Menu->Preferences->External Tools, and set the External Script Editor to something else, and then revert it back to Visual Studio.
If that fails, just underneath that dropdown there is a button Regenerate Project Files, which helps when your VS project files get messed up.
Also, upgrading to the latest version of Visual Studio and Unity Tools for VS could help.
My bad if I misunderstood this question, but all you have to do for unity to update your scripts for your game is ctrl + s, this will let unity know you made changes to the script and it will apply those changes.

Code not showing up when opening Visual Studio from Unity

I am a newcomer when it comes to Unity. I was following along with this online course. At one point, I had to write a C# script. So, I created one and doubled clicked it to edit it with Visual Studio. However when Visual Studio opened, all I could see was a essentially a blank screen. I couldn't see any code. Does anyone know the fix?
Thank you
Did you create it inside like this ... In Unity>ProjectWindow>AssetsFolder>RightClick>Create>C#Script.Then double click to open it.It will open up a script containing Start() and Update() method.If you could not find this.Restart and try.This is to test and try script for Unity scripting.
So this is way too late for the original post but maybe someone else will find this useful. So you did everything you were supposed to and even see the automated code with everything it should have in the inspector, but when you go and run the code whether clicking the actual script in the asset>scripts or clicking the open button in the inspector the same problem persists... blank uneditable screen.
I think you may just need to run updates on Visual Studio and/or if on a Mac maybe you need to log back into Microsoft. To do this just click the Visual Studio tab and click check for updates. Usually, you will also see an update suggestion in the top center of the screen. Run the updates and let it restart visual studio. Once you reopen visual studio at this time if you are on a Mac it should ask you to log into Microsoft. Your code might show up now.

sublime text-like code scrollbar on visual studio code

I have recently switched from Sublime Text to Visual studio code, but there is something that i truly miss, and it is the scroll bar at the top right corner of the which shows a smaller version of the file being edited (I don't know the exact name).
I find it pretty useful to navigate through my files, especially when i want to start deleting blocks of code i have commented out, before i submit my code.
Is there any plugin to get this on visual studio code, or is there any ongoing plans in order to implement it? Thanks!
Tracked in this feature request: https://github.com/Microsoft/vscode/issues/4865