I would like to set Visual Studio for Mac 2017 to automatically open .axml files in the source editor mode without loading the Android designer.
Does anyone know how to accomplish this?
On top of that I would also like this to happen when I use the Go To File binding I have setup. Currently every time I open an .axml file through Go To File it takes about 10-50 seconds to load up (no exaggeration). If it takes longer than that it never opens and the entire IDE stops working.
I am currently right-clicking on the files and selecting open with -> Source Code Editor.
Any pointers would be appreciated.
Since Visual Studio for Mac does not currently support configuring the editor used to open a file I created an Open With addin that provides this feature.
It provides an Open With dialog that allows you to change the default editor or application used to open a file in a similar way to how this is done in Visual Studio on Windows.
After installing the Open With addin into Visual Studio for Mac 7.0 or above, you can right click a file in the Solution window, and select Open With - Preferences to display an Open With dialog. This dialog is based on Visual Studio's dialog. You can change the default application or editor used here or add a custom application.
So you should be able to configure Visual Studio to open .axml files into the text editor or Android Studio.
More details can be found in this blog post
Related
I have created VSTO Add-In for Excel, for running this application I am depending on Debug folder.
Here my problem is this Debug folder is having multiple files along with Microsoft Excel Template file this will create little confusion to choose right file to run for new users.
Is there any possibility to create a setup file for VSTO Excel Add-In application in Visual Studio Professional 2017.
Or else is there any possibility to keep all files (except Microsoft Excel Template File) in one location and Microsoft Excel Template File is in one location (like on desktop).
FYI: I know via shortcut for Microsoft Excel Template File we can do this, but I don't want to do this manually.
Thanks in advance
First, you shouldn't give debug builds to your users. Build with the Release settings instead. The default visual studio layout has a drop down that says Debug in the menu bar. Use the dropdown to select Release.
If you use the Publish feature of the Project in Visual Studio, it creates a ClickOnce setup.exe that will install the addin for you. rclick on your Project in Solution Explorer and select Properties. Then go to the Publish tab, fill out the form and click Publish at the bottom.
If you want to include an extra data file with in the installation you can follow these instructions to add it.
Basically you have to add the file to the directory you Published to and add an xml tag to the manifest file that includes the name of the file, hash and size.
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
I have installed vs2012 on my computer and I have to open a vs2010 project(the code is written in windows form);
For example when I have to open "form.cs" I don`t see the windows form,when I need to open the code to debug,there is always a migration report..
I have read about how to open the project in different ways many times
,but I need something specific how it can be open without problems!
I have a web application which is built on VS2010. I am trying to upgrade it to 2013. I did open .sln file with VS2013. It open without error so i make few changes.
One thing i realize the icon of solution file still look VS2010. What i have to do so that .Sln file looks it is built on VS2013.
Thanks
Right click and select "Open With" and then "Choose Default Program"
Select the check box "Always use the selected program to open this
kind of file"
Click OK
You cannot set the icon displayed for an individual .sln file.
For all non .exe files, explorer displays the icon of the application associated with that file type (i.e. .sln extension).
Since explorer is currently showing your .sln files with a VS 2010 icon, then your machine is currently configured to associate .sln files with VS 2010.
If you change the default association of your .sln files to VS2013/VS2015/etc., then explorer will display the appropriate associated VS icon.
Find the Solution file (.SLN) file for your project and right click on it and open in notepad.
At the top of the file change:
Microsoft Visual Studio Solution File, Format Version 12.00
Visual Studio 2010
To:
Microsoft Visual Studio Solution File, Format Version 12.00
Visual Studio 2013
Then the solution should open with VS2013.
More detailed info here:
How to force a Solution file (SLN) to be opened in Visual Studio 2013?
When I click on File>New>Project in Visual studio 2013 there are not any project templates present.
However, in a solution file(obviously created in another version of visual studio) when I try "Add>New Project" all the templates are present there.
I want to mention few things:-
I have tried all the possible switches like /installvstemplates, /ResetUserData, /ResetSkipPkgs, /ResetAddin etc.
Tried this:
Open the registry editor (regedit.exe)
Delete the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\{version}
Delete the HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\{version}_Config
Delete the %USERNAME%\AppData\Local\Microsoft\VisualStudio\{version} directory.
Re-installed visual studio several times even after deleting the "Microsoft Visual Studio 12.0" folder
Currently I am working on Windows 8.1.
Same setup of the product works perfectly on the another system running on Windows 7 service pack 1. What can I do now fix this problem?
Inside visual studio
On the menu bar, choose Tools, Import and Export Settings.
Choose the Reset all settings option button, and then choose the Next button.
Choose the No, just reset setttings, overwriting my current settings option button, and then choose the Next button.
https://msdn.microsoft.com/en-us/library/zbhkx167.aspx#bkmk_reverting