I want to use Angular in Visual Studio. I have currently Visual Studio 2017.
I need to install something by using the command palette, but there is not command palette in Visual Studio. I used ctrl+shift+p or ctrl+p combinations, and then nothing happened. I also checked the View section, and there is no integrated command line section or anything else.
Visual Studio 2022 has a feature similar to a command palette, called QuickLauncher. You can open it by pressing Ctrl+Q by default or change the keyboard settings to use Ctrl+P, which is what I did for my setup.
(Default Shortcuts in Visual Studio)
Command pallete only available for Visual Studio Code, https://code.visualstudio.com/. You have installed the wrong one. For Angular development I highly recommend Visual Studio Code, not the full fledged heavy Studio 2017. Please use the link I posted above.
There is GoTo All(Ctrl + Q) option in visual studio which has similar features like file search, other interesting features for code navigation, some command execution like pull, start, run tests etc.
It's not exactly the one found in Visual Studio Code(Different IDE), its getting pretty close with time.
For example there are many missing like 'start current page application' which can set in Tools -> Options -> Keyboard.
There is a ticket raised for Visual Studio to implement this feature long back and it seems it had been considered by Visual Studio team.
https://developercommunity.visualstudio.com/idea/460947/command-palette.html
Related
I'm trying to develop extensions for Visual Studio and I'm going through some articles.
One key point of VS extension development is to reset experimental instance of Visual Studio, which I am having problem with.
For example, here is written that I should use following command to reset it (it is recommended also in Microsoft docs):
CreateExpInstance /Reset /VSInstance=12.0 /RootSuffix=Exp
I run command line and navigate to CreateExpInstance location and run this command (I tried with various versions: 12.0, 14.0, etc.).
However, I keep getting such response:
The Visual Studio Experimental instance directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0Exp does not exist.
CreateExpInstance: warning : The Visual Studio directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0 does not exist.
Created directory C:\Users\Mi\AppData\Local\Microsoft\VisualStudio\10.0Exp\Extensions.
Press any key to continue . . .
Moreover, executing this keeps creating new experimental instances in my %localappdata%/Microsoft/VisualStudio directory
What am I doing wrong? Why my instance isn't getting reset? Or maybe this is how it should be?
There are several shortcuts for each Visual Studio version that you can run like this:
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2017\Microsoft Visual Studio SDK\Tools\Reset the Visual Studio 2017 Experimental Instance.lnk
Visual complement to Sergey Vlasov's excellent answer:
What I want is to use my .zsh shell instead of the default (mac) terminal when building/running my compiled C# code. Is there a way I achieve this with the newly released Visual Studio for mac?
Note: I am referring to Visual Studio, not Visual Studio Code.
Currently not possible. Microsoft just re-branded the Xamarin studio into visual studio for mac. And the default terminal was hard-coded into it. There were multiple feature request for numerous terminals (this one for example).
"Run on external console" (with default terminal) is the only option in this regard.
I just got Visual Studio for my Mac. Although in Beta, it seems nice. Unfortunately, I can't seem to figure out where VIM could be. I've searched the marketplace, but cannot load any file or extension into the IDE to enable VIM. I've checked the preferences in keyboard behavior, but nothing.
Does this IDE really not have one of the most essential tools?
Use VsVim with Visual Studio for Mac 8.4 or newer.
Original Answer
Shameless plug - Use my plugin :) https://github.com/nosami/XSVim/releases
It's now available in the Visual Studio for Mac extension gallery (under IDE extensions)
You can usually find a more recent version on the github releases page than in the VS for Mac addin gallery.
Visual Studio for Mac is not a direct port of Visual Studio for Windows. It's essentially an alpha-level rebranding (with a lot of work put into it but still) of another IDE called Xamarin Studio, itself essentially a rebranding of MonoDevelop.
As such, you shouldn't expect any compatibility with other tools in the Visual Studio ecosystem for the time being.
However, you can set up MacVim as an external tool if you really want, but you won't get any kind of integration per se:
What worked for me was downloading VsVim addin as *.mpack file from this page: https://addins.monodevelop.com/Project/Index/403. In my case the file was named Vim.Mac.VsVim-2.8.0.7.mpack.
After downloading the file, I opened Visual Studio for Mac, selected Visual Studio - Extensions from the menu to open the Extension Manager pop-up window, clicked Install from file... button and selected the downloaded *.mpack file.
Needed to restart Visual Studio to get the extension to work.
This was done in Visual Studio for Mac 8.7.8.
After last VisualStudio update (8.1.3 - a new Editor is in place) Vim doesn't work anymore.
At least for now, you need to mark a setting in Visual Studio that forces use of the old editor, as described in the extension's README here.
From that page:
You need to use VsVim. Also, for those who find this via google, the workaround steps are:
Uninstall the broken VsVim extension and restart Visual Studio for Mac.
[Download](https://addins.monodevelop.com/Stable/Mac/8.5/Vim.Mac.VsVim-2.8.0.5.mpack via your browser)
In VsMac, go to the Extensions pane and click Install From File. Navigate to your Downloads folder and select the .mpack file you downloaded.
For some reason the extension doesn't work right away. You need to restart Visual Studio for Mac.
Reference: link
how do i get Unity3D for debugging the code, and Visual Studio 2013 which i have now to only script the code. Example: Like Flash Professional for debugging and FlashDevelop for scripting only.
My question is, how do i get the Unity3D link with Visual Studio 2013. I already searching around the internet, and had found that Unity3D only works with VisualStudio 2010.
I wrote a blog article on this awhile back on my blog HERE for Visual Studio.
However I will paste it here too:
How to use Visual Studio 2013
Recently Microsoft bought and re-released the popular Unity3D plugin UnityVS. The now renamed Visual Studio Tools for Unity plugin smooths the connection between Unity and Visual Studio and even allows one to perform debugging too! Download it here.
In Unity Editor go to Edit->Preferences->External Tools and In External Script Editor choose Browse from the drop down box.
Browse to and select C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.
The External Script Editor should automatically show your selected editor as Visual Studio 2013.
That’s it! It should just work from that point on.
As an important update, I would like to notice, that former UnityVS (after Microsoft's acquisition of SyntaxTree) is now available for free as a rebranded Visual Studio 2013 Tools for Unity.
The versions for VS 2012 and VS 2010 are also available.
The integration of Unity3d and Visual Studio got simpler with latest Unity (version 5) and Visual Studio Tools. This is the current procedure.
To use Visual Studio as editor and debugger with Unity you must:
Install the Visual Studio Tools For Unity. For this download the package at http://unityvs.com (careful to get the version for the Visual Studio you are using) and import it (as is standard in Unity for packages) by going into Assets -> Import Package -> Custom Package and browse to the tools installation folder and pick the package.
Once installed in Unity you will get an additional menu Visual Studio Tools, go there and select "generate project files". Visual Studio will already be the default editor for your scripts.
This done, if you say put a breakpoint in Visual Studio, click on "Attach to Unity" in Visual Studio, and then run your Unity project, the process will stop at breakpoints in Visual Studio and allow variable inspection etc.
you can use unityvs VS plugin (but I'm not sure about current 2013 support, it's works with vs2012) http://unityvs.com/ - on windows it's works very well, but remote OSX debugging feature is not ready yet
I'd like to add to the fine answer given by Pietro Polsinelli, that for me, there was an extra step in his Step 1. And that is that, after installing Visual Studio Tools For Unity, I had to, in Unity, go to Assets->Import Package->Visual Studio 201X Tools and then click around on the menu bar until "Visual Studio Tools" showed up as an option. After that, I could Generate Project Files and Open in Visual Studio.
This enabled me to Attach to Unity in Visual Studio and debug.
None of these solutions worked for me. Renaming monodevelop just changed the default program to notepad++, and the next default program after that was simply notepad.
However, there is a known bug with Visual Studio 2013 (not sure if it was present in previous versions, or if it is present in the non-professional version) where if you try to open a C# file in visual studio, where Visual Studio is opened as administrator and Unity isn't, VS crashes.
I had to either run both programs (VS and Unity) as administrator, or not open VS as administrator (as per the solution found here: http://connect.microsoft.com/VisualStudio/feedback/details/597863/cannot-open-visual-studio-files-from-windows-explorer).
With Visual Studio You Can Use UnityVS Plugin But if You Use Monodevelop You Can Go To Run->Attach To Process.. And Connect The Debugger to Unity Editor It Work Perfectly.
To link Unity with Visual Studio, do the following:
Do this on Unity.
Go to file --> preferences --> external tools --> external script editor --> Choose visual studio.
If Visual Studio is not showing, you Re gonna have to browse Visual Studio by hand.
Then you open any script in the Unity Project window and Visual Studio should open the file.
I hope this is helpful.
Note that I am using Unity 2020.2 and Visual Studio 2019
Hi im starting to learn c# just now with visual studio 2012 and windows 8, and the tutorial has given some .cs files and not explained how to run them. It is all command line stuff in this tutorial. This stack overflow answer gave the most easy-sounding way of doing it (in response to a similar question by someone else).
If you already installed Visual Studio, just: Click Start, point to
All Programs, point to Microsoft Visual Studio, point to Visual Studio
Tools, and then click Visual Studio Command Prompt and there you have
your command line box where you compile as follows:
csc PathToYourCsSource
I cannot find visual studio tools. I typed it into the search in windows 8. Thanks
It is easier to: Run Visual studio -> Make a new C# console project.
This makes a project with a simple Program.cs file. You can just copy/paste in that, and run the project my clicking F5.
"Visual Studio Tools" is the name of the folder in the All Programs list, not the name of an item you can find by searching. You can search for "Developer Command Prompt for VS2012" (or some portion of that) instead.
I'd recommend that instead, you work with your .cs file as part of a project in Visual Studio. It's easy to create and run a Console Application from the IDE.
You can also use tools like Linqpad to run snippets of code so you don't have to use the bloat of an entire Visual Studio solution/project.
1.
in visual studio directory go to Common7>Tools>Shortcuts>Developer Command Prompt for VS2013 run this ,type csc programName.csc for compiling
and programName for run
Make sure to change the directory of console to your program path
2.
In visual studio create new C# console application and write there ,for run go to menu debug>Start Debugging