How to clear all debugging breakpoints in Visual Studio Code? - visual-studio-code

How can one clear all debugging breakpoints in Visual Studio Code?

in VSCode top bar : Run > Remove All Breakpoints.

Related

Unity:Use Different Compilers For Different File Types

Can the unity External script editor be extended to open up different extensions with different editors?
I want to use vscode to open .shader files, while I want CSharp scripts to use Visual Studio. With the External script editor I can only set one editor for all extensions.
I had this question myself, and I found a workaround. Not the solution I was hoping for, but still good enough for me.
You can set Visual Studio as the main editor for all extension in Unity. Then, from Visual Studio, you can set the .shader extension to be edited by default using Visual Studio code.
To do this:
Go in Unity -> Edit -> Preferences -> External Tools and set External Script Editor to Visual Studio. I also ticked all the tickboxes to make sure all files were generated; this is useful because when opening an asset file it will appear with its contextual files in VS Solution Explorer, which makes the next step easier.
Create a Shader and double click it to open it up in Visual Studio.
In Visual Studio, go to the Solution Explorer and right click the .shader file, then select Open With.... Scroll to find Visual Studio Code, and click Set as Default.
From now on, every time you edit a Shader file, Visual Studio will fire up, then Visual Studio code will open up immediately thereafter, with the shader file in it.
This will reuse an open instance of Visual Studio if it is already open, which is what I have most of the time, so the overhead of opening up Visual Studio to open Visual Studio code is nullified most of the time for me.

Visual Studio keymap for Eclipse is wrong

I tried setting the provided Visual Studio keymap in Eclipse, but the shortcuts just do not seem to match. For example, to comment current line / selection, the Visual Studio hotkey was CTRL+K,C and it does not work in Eclipse.
EDIT: Also, in VS the default key to go to previous cursor position was CTRL+- .. in Eclipse this seems to be ALT+- even with the VS keymap enabled.
Is there anywhere I could find a proper keymap?

Visual Studio Code disable Getting Started

I have a question regarding Visual Studio Code deployment.
Visual Studio Code opens IE window to show Documentation for Visual Studio Code (https://code.visualstudio.com/docs?start=true) at first launch.
Is it possible to disable this?
I didn't find the proper setting. It seems that the Documentation window is not shown if the file %APPDATA%\Roaming\Code\Local Storage\file__0.localstorage exist. But I'm not sure if the same file can be used to suppress the IE window on different PCs and for different users.
you can go to File > Preferences > Settings, search "Startup Editor" in "Search Settings" and choose "None" from the drop-down menu.

Save Powershell Shell Studio 2015 to TFS

Does anyone know how to check in PowerShell Studio Project to TFS in Visual Studio?
As you can see in my PowerShell Editor all of the Source Control commands are grayed out. I downloaded and installed the mssi file for Visual Studio 2015 but I can not seem to open it from Visual Studio to check it in?
Image of my Editor:
There's an extra setting under the options (view tab on the ribbon > options) then on the options window the bottom tab on the left is 'Source Control'.
Make sure 'enable source control' is checked.

Cannot open solution file in Visual Studio Code

I have installed the Visual Studio Code on Windows. When I try to open a solution file in VS Code it opens the solution file, instead of opening all projects in solution. Is there a way to open existing project solutions in VS Code?
When you open a folder in VSCode, it will automatically scan the folder for typical project artifacts like project.json or solution files. From the status bar in the lower left side you can switch between solutions and projects.
Use vscode-solution-explorer extension:
This extension adds a Visual Studio Solution File explorer panel in Visual Studio Code. Now you can navigate into your solution following the original Visual Studio structure.
https://github.com/fernandoescolar/vscode-solution-explorer
Thanks #fernandoescolar
VSCode is a code editor, not a full IDE. Think of VSCode as a notepad on steroids with IntelliSense code completion, richer semantic code understanding of multiple languages, code refactoring, including navigation, keyboard support with customizable bindings, syntax highlighting, bracket matching, auto indentation, and snippets.
It's not meant to replace Visual Studio, but making "Visual Studio" part of the name in VSCode will of course confuse some people at first.
But you can open the folder with the .SLN in to edit the code in the project, which will detect the .SLN to select the library that provides Intellisense.
In the VSCode Marketplace look up and install vscode-solution-explorer