Does the ReSharper API expose ReSharper refactorings? - resharper

I'd like to know if the ReSharper API exposes the refactorings that come with the ReSharper plugin. So far I haven't been able to find anything on this in the docs or online. Basically I want to be able to execute several refactorings sequentially (almost like a script). I'm aware that the API allows you to create new refactorings, but I'm not sure if it allows for invoking refactorings that already exist in ReSharper.
Thanks in advance!

Related

Automated Web Reference Switching in C# project with NAnt

Problem: I have a C# 4.0 project with web references in Visual Studio 2010. I have two sets of web references, but I do not want to use them simultaneously. I want to be able to automatically remove all my current ones, add all the new ones, and then do the equivalent of 'update web reference' on each of them. I'm having a difficult time even finding where to start.
After searching around, I've found NAnt, which looks like it may be able to accomplish what I'm after (with the wsdl command), but I'm in unfamiliar territory.
Question: Is NAnt the right tool for this job? Will I be wasting time if I learn to use it? Is there a simple solution that I'm just not seeing? I'm more just looking for some guidance than a hammered out solution.
If anyone's interested:
After doing more research, I think I'm going to use some combination of
MSBuild,
How to call MSBuild from C#,
and
How do I automatically update a web reference at build time?
I'll update this answer with my solution when I'm done.

Resharpening from the command line

I would like to use the ReSharper Adjust Namespaces feature on a number of solutions. I would like to automate this process by creating a command line application that uses the ReSharper API.
I looked at the ReSharper OpenAPI, but it seems to be geared towards using the ReSharper API from within an active Visual Studio session. I want to be able to use the ReSharper API from the command line.
Is this possible?
You are right: the open API is generally geared towards use within VS. While using it outside of VS is theoretically possible, it is technically challenging and may or may not work depending on your usage scenario.
There's no reason, however, why you shouldn't be able to adjust namespaces across several solutions right from within Visual Studio - of course, this would require to actually load each solution into the shell before performing manipulations. As things stand, this approach is your best bet.

How can Aptana help with Netsuite Client Suitescript development?

I found my way here from the 3-years-out-of-date page at http://suitesource.netsuite.com/s.nl/it.A/id.82/.f . I have the latest eclipse, with the Aptana plugin and the NetSuiteEclipse plugin.
Just exactly what does Aptana do for me? It's not altogether clear, and it seems Netsuite may have abandoned their end of it.
By far the best environment I have found lately with regards to developing scripts for NetSuite is to just bag the instructions given by NetSuite and go with Aptana Studio 3 (not Eclipse with the Aptana plugin) and then include the NetSuite plugin to allow for direct upload into NS as Jeff mentioned. Aptana Studio is basically just Eclipse for JS and some additional cool features, like built in color themes.
The only other step you need to do (and this is not mentioned in the NS help) is to place SuiteScriptApi.js (and maybe nlapihandler.nl.js) in the root of your main project folder. The above configuration will give you code completion/definition for JavaScript in general and SuiteScript. I forget where I got the files but you can search on SuiteAnswers for them.
The help really needs to be updated to include the changes in IDE's.
The aptana plugin is not Netsuite specific it is a plugin for javascript development and provides code completion for javascript. The code completion of the netsuite objects is limited.
The netsuite plugin to Eclipse allows you to upload your suitescripts to netsuite directly from eclipse. However there are some limitations as to the path of the uploaded files that I can't remember at the moment. It did not allow me to set the paths the way I wanted so I stopped using it.
Use Suitecloud IDE.
Created from Eclipse but customized for Netsuite API.
http://elibeltran.com/suitecloud-ide/
About once a year I try Aptana and I end up uninstalling it each time- recently I tried again for my third time and uninstalled it. In my experience the code completion isn't very good, it doesn't handle complicated inheritance situations, doesn't play well with object literal notation, etc. I don't have proof and I've uninstalled it so if anyone asks me for specific examples I can't produce them.
I always end up back with Eclipse classic (3.7 I think) and JS Eclipse (which is an abandoned plugin that Adobe bought from Interakt but it still works) It's fast and has decent code completion. Is it better than Aptana? I don't think so, but it's snappier and seems to require less restarts.
I wish I had better experience with Aptana, it makes me nervous that JS Eclipse is a ghost that will disapear here at some point. I maintain over 48k lines of SuiteScript in our installation, I REALLY could use a better tool! ;)
Try Visual Studio 11.
It has much better intellisense in my opinion (as long as you configure it with any libraries such as the SuiteScript API.js). It also works well if you are already used to Visual Studio from .NET development (including SuiteTalk web services).
Not really an IDE but here is some suggestion.
Use a Google Chrome debugger. When you are in Edit mode in a record (example: customer), you can use the suitescript API to get the object-tree, very helpful in developing client-side script in Netsuite and understanding how their API works.

Convert codeSnippet to Resharper Templates .Is there a utility for this?I

I love resharper it's fantastic. I wanted to post this in the resharper forum but for some reasons when creating an account it fails.Anyway back to my questions.
I have many codesnippets and I would like resharper to see them.Still today you are stuck apparently if you using resharper settings you cannot view them.
As anybody by anychance created an utility to convert them to resharper templates?
I dont know how to create live templates and even if I did i would have to create 100s of codesnippets manually which I am not going to do.
Any suggestions?
There's no such utility that I'm aware of although it shouldn't be too complicated to create one. I have created a feature request in ReSharper issue tracker to allow direct import of any VS snippets to live templates. Hoping it can be implemented one day.
It should be noted however that merely importing VS snippets to ReSharper templates is only a half of the story: VS snippets provide quite a poor choice of variables in templates whereas ReSharper exposes a rich set of macros which allow deploying templates in a more intelligent manner.

Getting started with Gmail Plugin development

I would like to get into Plugin development using the Gmail API and as such I would like to ask those who already have experience in it a few questions.
What language / languages should I be familiar with? I'm not familiar with Python, PHP, or JavaScript. Will I need to pick up on these?
What level of control do I have on what my plugin can do? Can I for example change the interface or add shortcuts or RSS feeds as a sidebar?
I know a lot of the examples mentioned already exist but I would like to try my own hand at it.
Peter posted a solid list of the official Gmail APIs.
On the other hand, most of the major plugins that you may have heard about are browser plugins that just modify the page source directly, even though there's no official API for it. There used to be a GreaseMonkey API that was a good starting point, but that wasn't supported and no longer works. Best place to start is with a copy of Chrome, creating a content-injection plugin that works on the Gmail page.
Happy to provide some further details if you can clarify what you're going for since I went through this myself a few months back.

Resources