CMake Tools just disappears prematurely when trying to use it in Visual Studio Code - visual-studio-code

When opening Visual Studio Code with the CMake, CMake Tools, and C/C++ Extensions extensions installed, the options provided by CMake Tools initially appear, but disappear when clicked on. My finger isn't even released from my mouse before the options disappear. On top of this, the CMake Tools button which should be on the left-side pane of Visual Studio Code never appears.
https://www.youtube.com/watch?v=83Vl_qnqpdc
This video above demonstrates this--before encountering this error, I followed this tutorial:
https://www.youtube.com/watch?v=BAoTBg8MJJ4

Related

How to set the icon of a c++ console application from Visual Studio Code

Previously I used to use Visual Studio 2019 for building my software and setting an icon in Visual Studio is easy. But due to some problem, we shifted to Visual Studio Code and Cmake to build my project. But now I cannot set the application icon. Please help.

VS Code editor intellisense doesn't work with UnityEngine.UIElements namespace

I can't get any types under UIElements to be picked up by Omnisharp when using VS Code or Vim. I've tried with a minimal project (clean 3d template) with Unity version 2020.3.20f1, Visual Studio Code Editor (Unity package) version 1.2.4, UI Toolkit version 1.0.0-preview.18. I've followed the guide here to get the correct compilation order of packages.
Build still works fine, but the editor's intellisense throws squiggles under all UIElements types (e.g. VisualElement, UIDocument).
Change the external script editor (Preferences > External Tools) from Visual Studio Code to Visual Studio Community 2019, then regenerate project files. This seems to work around whatever the issue with Unity is.
Downgrade to Visual Studio Code Editor v1.2.3. I have the same issue with .4

Unity with Visual Studio 2019 : Assembly-CSharp (incompatible) in Solution Explorer

I'm new to Unity and can't find how to get it working with Visual Studio 2019 properly.
I just installed Unity 2020.3.13f1 (LTS) from the Unity Hub as recommended for Hololens developement.
I already had VS2019 latest version installed and working.
In VS2019, I installed: Tools => Get Tools and Features => Game development with Unity
When I double click a script in Unity, VS2019 open and I get the following error: Assembly-CSharp (incomptible)
Also in Unity, I have a warning: Visual Studio Editor Package version 2.0.11 is available, we strongly encourage you update from the Unity Package Manager for a better Visual Studio Integration
Update I fixed the warning (see below) but still have the error in Visual studio
In Unity, I updated the package: Window => Package Manager => Visual Studio Editor => 2.0.11
I also did: Edit => Preferences => External Tools => Regenerate project files
I now have all latest Unity package versions:
But I still have: "Assembly-CSharp (incomptible)", How to get valid solution in Visual Studio ???
Have had this issue for months... After numerous different posts/guides on this issue, I found just right clicking and hitting "Reload project with dependencies" for each project worked.
Now this was after fully updating Visual Studio and Unity, uninstalling the VS Unity tools, reinstalling, and reconfiguring visual studio tools in Unity... Figured I'd add this to to the list of things to try because it worked for me!
You should probably try right clicking the file and choose reload.
When I tried it Solved my issue
I deleted my project and created a new one and everything is fine now in Unity and Visual Studio (All references and scripts).

Cannot Found installed VS Code after Snapcraft Install

Dear fellow programmers,
Today I just decided to move to VS Code from Sublime Editor and I have installed Visual studio through snapcraft intall, the instalation is done properly as you can see below.
But after that installation I cannot found Visual Studio anywhere, I tried to find it on menu, desktop and terminal as well but no luck the Visual Studio is not anywhere.
My question is How to open an Application (VSCode) that have been installed using snapcraft ?
Thank for the helps.

Set common shortcut keys for Visual Studio, VS code and Eclipse

I have been using Visual Studio since last 5-7 years. Now I started using VS Code & Eclipse as well. I am very used to Visual Studio shortcuts.
Can I have same shortcut keys in Eclipse and VSCode as in Visual Studio. I am hopeful that both Eclipse and VS Code should provide setting up own shortcut keys for different operations. It would be difficult to set individual keys for Eclipse and VSCode.
Is there any plugin/file/setting by which I can set easily set most of the shortcuts keys in Eclipse/VS Code as in Visual Studio?
I don't know about eclipse, but in VS Code there is an extension called Visual Studio Keymap.
i do not think eclipse marketplace (https://marketplace.eclipse.org) has any plugin for keymap of visual studio.
vscode though has a keymap plugin for eclipse, https://marketplace.visualstudio.com/items?itemName=alphabotsec.vscode-eclipse-keybindings.
Hope this helps.
You can add the Visual Studio key-map to Eclipse by installing the C++ devs tools from within Eclipse. Follow this post to set it up:
https://stackoverflow.com/a/10075350/2052295
For VSCode simply install the Visual Studio key-map extension:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vs-keybindings