How to bring Visual Studio features to Eclipse? - visual-studio

Visual Studio refugee here. I've had to switch to Eclipse to write a couple of Java apps and I am really missing all the VS2008 goodness I've come to rely upon.
I am new to Eclipse, so I simply might not be finding what I need. With that in mind, how do I replicate the following in Eclipse.
Right click on a source code tab,
and open the folder
Love VS' External Tools feature, which allows you to perform operations on a single file via tokens. Anyway to do this in Eclipse?
Intellisense when editing XML files
Finally, can someone recommend a good newsgroup or a forum where Eclipse experts hang out (other than here)? I couldn't really find anything on the eclipse site.

There are plug-ins available for this, such as StartExplorer, Eclipse Explorer
Click on the "start button + toolbox" drop down menu next to "run" and "debug" and select "Open External Tools Dialog". This lets you run arbitrary tools.
Intellisense for XML would normally be provided by the XML editor you're using. Look in Eclipse Plugin Central for XML plug-ins if the one which come with Eclipse aren't enough for you.

Related

Unable to browse to include reference in a Visual Studio C++ DLL project - any way to get around this?

I'm creating a DLL using C++ in Visual Studio 2015. I started my project by following these instructions.
I need to add a reference to my project so I can make use of an API and, unlike C# DLL projects (for example), I'm unable to access the Browse tab when clicking on Project > Add Reference.
According to this page this is because:
The number of tabs available at the top of the Add Reference dialog
box can vary, depending on the type of project open and the resources
it is using. C++ native projects contain only a Projects tab.
Why is there this restriction and is there any way to get around it?
EDIT: I've just found a solution here but I'm new to Visual Studio and I'm not sure how to set 'the CLR option' and then remove after adding my reference. If anyone can explain how to do this I would be very grateful!
I'm a little late to the party, but I recently encountered a similar problem and have a fix that might help the OP or others in the future.
Problem Overview:
Open the Visual C++ project[1] in Visual Studio[2]. In the top toolbar, click on "Project > Add Reference..." . In the window that pops up, there is no "Browse" button/option (see image No Browse option).
Solution:
In the top toolbar, click on "Project > Properties"[3]. In the left navigation panel of the window that pops up, click on "Configuration Properties > General" (this will probably be selected by default). In the right panel, click on "Project Defaults > Common Language Runtime Support". The field value should read "No Common Language Runtime Support" (see image No /clr). Using the drop-down menu in the Common Language Runtime Support field (the grey down-arrow box), select "Command Language Runtime Support (/clr)". Apply the change. The Property Page should now look like this. Click "OK" to close the Property Page. Now, when you go to add a reference, the window that shows up will have a "Browse..." button and look like this. If you want to subsequently remove CLR support[4], select the "No Common Language Runtime Support" option and apply the changes.
Notes:
[1] As you're probably aware, you can select from various project types when creating a new project in VS. I experimented with most of the Visual C++ project types included under the Visual C++ template. Since the problem -- lack of "Browse" option when adding references -- seems to be related to CLR support, you will encounter this problem in all Visual C++ project types that are not created as Visual C++ CLR projects. Thus, if you want avoid the problem from the get-go, consider creating a CLR project from the start.
[2] I was able to replicate the problem in Visual Studio 2015, 2017, and 2019; the same solution works for all versions.
[3] Before changing any Configuration Properties, use the Configuration drop-down list in the top-left of the Property Page to select which configuration you would like to change the properties for, e.g. Debug, Release, All.
[4] If you have added references after turning on CLR support, then turning off CLR support is dubious as suggested by #Cody Gray in the comments to the original question. I have not tried to build a project after doing something like this so I can't speak to the solution suggested here. My answer is just to tell you how to change the CLR support.
For C++ projects, you need to get all the projects into the same solution and then when you go to Add Reference you'll see the other projects listed. You then just check the box to 'add the reference'. Keep in mind that this will cause the import library of the DLL (or a static library for a non-DLL library project) to link against your target project. It will not add any include paths you might need to get to the import headers for your DLL.
DirectX Tool Kit has instructions for adding project-to-project references for a C++ project that you might find useful to read over. See here.
For some general background on C++ project-to-project references. See this Visual C++ Team blog post which was published when they were updated for Visual C++ 2010.

Visually Editting AXML file in VS2010

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

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.

Can you add documents and spreadsheets to a Visual Studio Project?

In Eclipse, I often include all project-related material (including documents in PDF, Microsoft, and OpenDocument formats) in the project. Is this possible with Visual Studio, especially to the point where if I attempt to open the file from inside Visual Studio, it will open in the external application?
Yes, just right-click your project in the solution explorer and goto Add > Existing Item...
Though -- I'd recommend making a new folder to keep this in.
Yes, you can make sure that when you open it it opens with the correct application. Just right-click the file once it's added into the solution explorer and select Open With... and make sure you set the default application that way from that point forward you can just double-click your files.
If you have access to use Sharepoint Services with your source control than that would also make life much easier, thanks for reminding me Chris!
I don't want to take away from Chad's answer. However, I will add that TFS has specific areas for project documentation to be stored in sharepoint.

How do I add a EULA to a VS2008 setup project?

This is a very simple question with a simple answer, but it is not quite so simple to find the answer on the internet.
I have a simple Setup (deployment) project in Visual Studio 2008, and I have the EULA text. What do I need to do in the project to get the EULA into the install wizard?
This is how you performed the actions in vs2003 an vs2005, I don't believe they've made changes but I'm not running vs2008 yet so I can't be certain.
right click the installation project, select View->User Interface.
In the "Start" section, right click, and select Add Dialog. Choose the license dialog.
point the license dialog to an RTF file.

Resources