CodeRush - Export type to file missing? - visual-studio-addins

I'm currently evaluating CodeRush and one thing that I liked most when reading the featurelist was the "Export type to new file" or similar functionality. Now that CodeRush runs within my IDE, I cannot find this functionality. Is there a plug-in required for it or am I just missing something?

Are you possibly talking about the "Move Type to File" refactoring? If so, it's pretty easy, I use it pretty much daily when I'm defining new classes.
Select a type's name (perhaps a class)
Hit your refactor key (Usually Ctrl-`) or click on the triple dot refactor icon
Select Move Type to File
I suggest watching some of Mark Miller's tutorial videos to really get you start with CodeRush and Refactor. The training videos are located here.

Related

What is the purpose of \summary in tex?

I have to write a report using LaTeX for my final year project at university. Having been given some example documents to learn to use it, a common command, \summary, keeps appearing. However, what's written inside the summary doesn't appear anywhere in the produced document. Is it some kind of internal documentation?
With a quick google, it is likely that /summary is used as a shortcut to reuse the abstract in one place.
Looking at a few templates : ucl thesis template, book template and stackoverflow it tends to be a custom command used for repeated style. Look through the different files for "summary" to see if appears in the preamble somewhere.

Add/remove breakpoints in Ace editor by clicking the gutter space

Does anyone know of an Ace editor API that enables adding or removing breakpoints by clicking the gutter in the editor window? I spent more time than I care to admit looking for this functionality in the API reference, source code, forums, blogs, etc. and the best information I found so far is this answer from May 2012. It's a good starting point, but the breakpoints don't move when new lines are inserted in the code above them. I find it hard to believe that Ace doesn't include this in the standard feature set by now, as it's something we've come to expect in any decent code editor and the Cloud9 environment supports it.
There is no API provided by Ace for this. Here's the implementation used by Cloud9 https://github.com/c9/c9.ide.run.debug/blob/master/breakpoints.js#L727.
Most likely it is kept in Cloud9 plugin instead of Ace because it depends on the format in which breakpoints are stored, which might be different for different ides.

How to get type info from Go compiled packages in language x?

I want to write a simple editor with basic autocomplete functionality for the Go language as a pet project. How would one go about doing it? I took a look at the Go plugins for Eclipse and IntelliJ, but they were too big for me to comprehend (not to mention getting one to compile).
The Go standard library offers the building blocks for a Go parser which
you can use to parse the source files and look for function definitions and the like.
There's also the godoc command which
already does what you want: extracting method definitions and it's documentation. You may look in the
source code to see how godoc is
working or use godoc directly.
This editor written in Go projects has a manageable amount of code,
you may look into it.
The de facto standard approach to this problem is to use nsf's gocode. I have tried it only in Vim - it works very well.
Even though there's ready made support for specific editors, gocode is not editor specific. It's a daemon with a communication protocol. It is thus usable from any program.

How to have "Find in Files" results automatically expanded

Simple question, (Easy points!)
In Delphi 2010 (with updates 4 and 5) "Find in Files" shows the results with the tree closed for each file. I have to click on a plus-sign to open each file's results.
I know there's a way to configure the IDE to automatically show the results with all the trees open, but for some reason (fatigue on my part?) I'm unable to find where to set that option.
Tom
Edit on year later: I re-asked this question here: Auto-expanding the results of "Find in Files" int the Messages windows and got a good answer:
"[Use the] Group results by file" checkbox on the Find In Files dialog.
Somehow I'd overlooked that! I'm posting this edit so that other readers in the future find it here.
I couldn't find anything like what you are asking about, in the Options. Perhaps you confused that with something else, but maybe I overlooked the option (too).
Anyway, there's a keyboard shortcut, Ctrl+Shift+Numpad +, to automatically expand all the tree items in the Message box tree view (when it is focused). Similarly, Ctrl+Shift+Numpad - collapses them all.
Not directly answering your question; but I was often frustrated by this, until I found the excellent Grep Search that is included with GExperts
It includes an option to 'Expand all matches after searching'. It also fixes many other shortcomings with the Delphi 'Find in Files'. I highly recommend it.

Visual Studio "Add Controller" list of model classes

The "Add Controller" dialog on an MVC project provides a dropdown list of model classes to choose from. These are usually the model classes in the project, and that's what I used to see. But now I'm getting this:
Any idea what's wrong and how to change it back to what I believe is the normal way?
I often run into a problem with that dialog box "forgetting" classes and showing odd choices. Closing and restarting VS has always cleared the problem up for me.
It seems there's no solution to this problem. That dialog shows the classes from all the classes in the solution, and that includes any 3rd party classes that were imported (using something like NuGet). Which kind of makes sense. So it's a feature, not a bug.
The workaround to sifting through that whole list is to take advantage of the autocomplete functionality built into that dialog, which makes it quite easy to find the required full class name.

Resources