How to automatically open a C# script when creating one in Unity? - unity3d

When I create a script it automatically opens visual studio but I was wondering if there was a way to automatically open the specific script that I just created?

One of the problems is that when you add a new script, it has to add it to the visual project project by regenerating the project. It also triggers Unity to recompile. They should improve this but this is probably why they can't instantly open it.

I believe it should do it automatically. Check if there is a message in Visual Studio above the tab bar that says something about the unity integration gone wrong. It should have a link to a guide on how to set it up properly.

Related

How I can save my layout on Visual Studio Code

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.

Visual Studio Code API Key bar keeps dropping down

I am new to Visual Studio Code. I have used it lightly in the past but need to use more heavily now that I am working with Python. However, the API Key bar keeps coming down when I am typing, trying to create a new file, etc. Does anyone know how to stop it from dropping when ever it feels like it?
Try and restart the platform and then re open the file I had that error a bit ago when working with GoLang but opened a python project up and that seemed to fix it
If this happens, there is an extension called WakaTime. Uninstall this extension and everything goes back to normal.

Roblox Studio Is not loading

This goes only for Roblox developers
Problem: Whenever I try to edit the place file, it continuously just tries to open the place file, but never does. It doesn’t crash, or stop loading the file; just keeps on trying to open it up and never doing so. I don’t have any problems with files that are not TeamCreate.
How Often: So far, it’s happened each time I’ve tried to open the place file.
Where: When loading the place file via website and studio app.
First Occurrence: I’ve never experienced this bug before, up until creating a place under a group, and then making it TeamCreate. One time, when we switched the game to TeamCreate, the person who switched it (the other was not in the place file at all) could not load the place file, basically same problem, continuously trying to open the place file. Anyways, I got a pretty decent PC that can handle an engine like Roblox Studio.
Here is a example (note: I was just using free models to get an idea of what my model was going to look like)
https://i.stack.imgur.com/4wzYv.jpg
You can try to reinstall ROBLOX Studio or in ROBLOX Studio, on the top left corner, click "FILE", click "Settings", and click "Reset All Settings".

Double clicking to open a file doesn't work with Visual Studio Code

I am using Visual Studio code and it works fine except that double clicking the file doesn't seem to open the file. Instead the Program just opens with an Untitled.txt screen.
Right click -> Open with code also works.
How do I make it work? I am using Windows 8.
This wasn't the case some versions back, but now it seems, that it actually is the expected behaviour. The developers intentionally do not register VSCode as the default open handler (don't ask me why).
But maybe there is a workaround. Try the following steps:
1. Try to associate the filetype(s) with another app, and then again to VSCode.
2. If setting to other editors and returning to VSCode still opens Untitled-1.txt, then you could
3. try reinstalling VSCode, and then reset it. When resetting, confirm that there is only one VSCode in the choice list.
It also could be, that you'll need to reboot your machine. Finally, you'll possibly also want to take a look at this issue on GitHub.
Hope you can solve it this way.

How to hook into the Visual Studio IntelliSense completion keys to change when it triggers

Visual Studio 2015 does not have a way to only select IntelliSense when I press Enter or Tab anymore in C# for 2015. It's available for JavaScript but not C#.
I'm trying to create a MEF project and hook into the IntelliSense to change this behaviour for C# files. Just to get started, I tried to implement this sample plugin from Microsoft:
https://msdn.microsoft.com/en-us/library/ee372314.aspx
The sample compiles, but it does not work. Nothing in the code is triggered from the debugged IDE. The samples tells to start a new text file and press "a" to get demo IntelliSense, but it never trigger.
Here's the code project if anyone want to look into it:
http://ontime.zdata.no/donwload/ProperIntellisense.zip
Could someone guide me in the right direction here, the documentation in this area is very fluid.
There isn't a supported way to use the APIs to customize this. The behavior you're looking to change falls under the Roslyn project on GitHub so you're more than welcome to file a bug there as feedback. You're also welcome to send a pull request, but at this point it's really tricky to make a change to the editor components of Roslyn and apply those to your locally installed Visual Studio. It's something we're working on fixing but it's not done yet.
The workaround is to press Ctrl+Alt+Space when inside the editor. That will toggle into the correct IntelliSense behaviour. Not a very easy thing to find, but it saved my day. They should probably give better information about this toggle feature, and make it more visible.. Still, it will not be remembered after closing the IDE, so you have to do it every time you start the IDE.