Visually Editting AXML file in VS2010 - visual-studio-2010

My VS2010 won't allow me to visually edit AXML files. I want to configure the "Open With..." feature in VS to run the visual editor.
The "Open With" feature is available by right-clicking a file in the solution.
Another one of my VS installations has this feature so I know it's possible. There must be something in the Xamarin install that this feature doesn't get setup some times.
Does anyone know how to set this up manually via the "Open With..." selection dialog?
Right now, I switch back and forth between Mono Develop and VS...what a pain...

This should not be the case you should just be able to select the file from the Resources/Layout folder and have the option of either the Source/Design view. If you are unable to do this just use the Xamarin Studio as you have been doing but it might also be a idea to use the DroidDraw website www.droiddraw.org/ in order to have a GUI to design your interfaces.
Hope this helps,
James

Related

How can I make Visual Studio open .linq files in LinqPad.exe rather than it's own editor

I have a VS 2017 solution that contains some .LINQ scripts. When I double click those files in the solution explorer in VS I'd love to have them open in LinqPad (the default system editor) rather than a VS text editor.
Is there a way to configure VS to do this? I tried Tools->Options->Text Editor->File Extensions but none of the options there seemed like it would open something outside VS.
I realise this is an old question and I don't have VS2017 but just in case it is applicable, VS2019 provides this functionality. If you right-click on the .linq file in Solution Explorer and choose "Open With..." you will be presented with a dialog similar to below:
LinqPad may not be in the list. If it's not then click "Add..." and navigate to where it is installed and choose the LINQPad.exe executable.
Make sure to click "Set as Default" and then click OK.
Opening the file from Solution Explorer should now open it in LinqPad rather than Visual Studio.

Unity3d 4.5.2 integration with monoDev

I am new to unity platform. I am having visual studio 2008 and unity 3D v4.5.2 working side by side. When ever i create a C# script and opens it to edit, it opens in visual Studio but not in monoDev even i have set the preferences to MonoDev built in and synchronized Assets with MonoDev. but still it opens in VS 2008. All i want is to open in MonoDev but not in VS. Ive searched it but not finding any particular solution to the problem.
Unity Preferences -> External Tools -> External Script Editor and instead of selecting the "Monodevelop (Built In)" option select "Browse" and go select the app exe file yourself and to debug in Monodevelop in Unity 4.3, you need to to tick the options "Development Build", and "Script Debugging" in the Build Settings panel
If you double-click a .cs file in Windows Explorer, does it open Visual Studio? If so, try making the default editor for .cs files the Mono IDE.
Hold Shift, then right-click a .vs file, then pick the "open file with" (or similar) item to permanently assign a new editor to .vs files.
i had the same problem and i broke my head but found the simplest solution
please follow
Open Unity
Go to Edit (Second Tab)
Click on Preferences (A new Tab will open )
Click on External Tools (Second Option Available)
Choose from the list of options Available
AND YOU ARE DONE (Make sure your option of the editor is Installed first LOL)
Click on the "Edit" tab:
Then find "Preference" in the available options. You will find such a mini window opening up, as in the picture below:
Then click on the second option, "External tools":
Then choose from the list of options available (if you have Mono Develop installed then it will be already selected for you)
My suggested options are:
Visual Studio
Mono Develop (usually I have to force close the first time , but I am comfortable with Mono Develop because of its light-weight and powerful performance compared to Visual Studio)
Notepad++ (for the pros)

Visual Studio 2010 addin /Projects with GUI

I'm trying to figure out how to do a VS2010 add in with gui, (like a simple popup with a few fields and an enter button)
I found stuff on stack that says Visual Studio (2010?) projects is what I need (instead of an addin) but all the tutorials I can find are for VS2008, and dont' apply to vs2010.
Is the answer outdated? what do I use?
Can anyone tell me what technology I need to use?
We have some powershell scripts that take parameters and generate code for us, I want to click on a menu item under tools (or a tool bar button) popup and ask for the parameter values, click ok, and then run the powershell. (someone else wrote the powershell, i just want to creat a built in gui for them)
As a bonus I'd like to add resultant files to the projects, but that's down the line.
Any hint or tutorials you can point me towards would be a great boon.

Visual Studio Installer how to prompt for install of shortcuts

I am using the basic VS project of Other Project Types\Setup and Deployment\Visual Studio Installer\ Setup Project.
I want to give the user the option of whether or not to create a desktop shortcut to the application. I know how to create a desktop shortcut, but not to make it optional. So far I have not made any custom dialogs for the install, just using the standard interface that VS provided automatically.
Is there any way to provide the user the choice without getting into a whole bunch of customization?
Are many people using this installer? I look around, we have a 5 year old license to InstallShield, but I have also found it to be bulky and more than we need for this application.
I also looked at WiX, but I don't have the time to learn an install package right now and it looks like a fair learning curve on it.
Basically our install has .NET 4.0 requirements, installs SQL Server CE, a couple other DLL's which are just copied in and populates a structure. I am not using the registry, using the preferred resources approach for that, so it is a very straightforward install.
There several ways to do it, in general… But I don't know the particular steps for Visual Studio installer project.
Create a feature which contains the Desktop shortcut. If you have feature selection tree in your installer, present this feature as yet anther option.
With another approach, you'll have to customize one of the existing dialogs or add a new one where you can show a checkbox. The checkbox changes the value of a property which, in its turn, controls the installation of component or feature for Desktop shortcut.
Yet I guess this method is not supported by Visual Studio.
See Microsoft UX guidelines on putting shortcuts on Desktop.
In most cases, it is not necessary to put a shortcut on Desktop unless your target users start your application very often.
The general approach is this:
create a custom dialog which contains a control that can condition the shortcut, for example a checkbox
create a custom action which deletes the shortcut after install
condition it with the checkbox property
This can be done in Visual Studio:
select your setup project in Solution Explorer
click User Interface Editor button on top pane in Solution Explorer
add a Checkboxes dialog under Install -> Start
customize it to contain only a checkbox that conditions your shortcut
add your shortcut deletion custom action in Custom Actions Editor page
condition it with the checkbox property
Some commercial setup authoring tools have this feature built-in.

VS2010 "Add Item" directory change

Is there any way to change the default directory Visual Studio 2010 uses when you add a source file through Add -> New Item?
Add New Item simply adds the item based on which project directory you're currently in or have selected in your Solution Explorer. If you want to change where it gets added then select the target location in the Solution Explorer first.
This behavior is obvious when right-clicking in the Solution Explorer, but it's also the same when using Project -> Add New Item....
Since my comment seems to be the actual answer, I repost:
In the toolbar of Solution Explorer, there's a button "Show all files" (or similar, I'm using the German version). This switches the view to directories, rather than filters. In this view, you can right-click on the desired target folder to add items.
This does not actually change the default directory, but since you have to click somewhere anyway to add an item, this is the easiest approach.
Note that even when only using Visual C++, I'd recommend the Productivity Power Tools extension, which comes with Solution Navigator. In C++, this is not as powerful as with .NET, but it still has several features that are useful in C++ and can fully replace Solution Explorer.
Try going to tools -> options -> Project and Solutions.
I know this post is old... but maybe someone will stumble upon it... like I did today...
I had the same "problem":
I have a dedicated directory for icons.
When I need to add an icon to the resource file, Visual studio takes me to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
To fix the problem, after I "browsed" to the desired folder, I right-clicked the favorites of the "open file" dialog and selected "add current location to Favorites".
Next time you will get this dialog, you simply have to look for the folder in the favorites, and click it.

Resources