Archive

Author Archive

Refactorings – Extract Method

August 13th, 2010 Comments off

The Extract Method refactoring creates a new method from the selected code block. The selection is replaced with appropriate calling code to invoke the newly-declared method. The Extract Method is great when you need to turn a big, complex method into smaller, simpler ones. Small methods are much easier to maintain, and encourage code reuse, and also have the following advantages:

  • It increases the chance that other methods can use a simple method when the method is finely organized and well-formed.
  • It allows the higher-level methods to read more like a series of comments, which improves the code readability. Simple methods with good names comment themselves, and improve overall code clarity. Overriding also is easier when the methods are finely grained.

Read more…

How to install multiple IDE tools versions side-by-side

August 11th, 2010 Comments off

Different versions of IDE Tools can be installed together side-by-side on a single machine. Note, however, you can have only one version running at a given time.

There’s a DXCoreVersion tool which allows you to switch between installed IDE Tools versions any time. You can find the “DXCoreVersion.exe” tool in your bin folder which looks similar to this path:

“%Program Files%\DevExpress %YourVersion%\IDETools\System\DXCore\BIN”

For versions greater than v12.1, the path may look as follows:

“%Program Files%\CodeRush %YourVersion%\System\DXCore\BIN”

where %YourVersion% is a version of CodeRush (IDE Tools) you have installed.

Read more…

IDE Tools – сommercial use of the products

August 11th, 2010 Comments off

You can certainly use DXCore while working on a commercial project if it’s necessary. You may also develop commercial plug-ins, but it’s better to contact DevExpress Client Services at clientservices@devexpress.com for the final confirmation.

Read more…

How to completely uninstall IDE tools (CodeRush and/or Refactor!)

August 10th, 2010 Comments off

Note, this article has been moved to the official DevExpress Support Center site. Please refer to the moved article as it might have further updates or additional comments. Thank you.

Here are the steps required to clean-up your system from CodeRush installation:

1. Uninstall the products (DevExpress CodeRush) from the Control Panel.

2. Search for any remaining DevExpress.CodeRush~, DevExpress.DXCore~ or DevExpress.Refactor~ assemblies located on your hard drive, including your GAC (%WindowsRoot%\Assembly), and delete any if found.

3. Backup your user settings located in the “%appdata%\CodeRush for VS .NET\1.1” folder and remove it.

4. Delete the Registry keys that were added when installing the product. Please note, the keys to be removed differ for 64-bit and 32-bit OS versions. Here are the keys you should remove:

For 32-bit OS

HKEY_CLASSES_ROOT\Installer\Products\1B5C4D2C5C682AC4B90028FD5D8DFB62
HKEY_CLASSES_ROOT\Installer\UpgradeCodes\781A3E6ADAAEC45469EF271B371F91AF
HKEY_LOCAL_MACHINE\SOFTWARE\Developer Express\CodeRush for VS
HKEY_CURRENT_USER\SOFTWARE\Developer Express\CodeRush for VS
HKEY_CLASSES_ROOT\CLSID\{7EB58660-96F1-49CF-B8AF-F47152B8CE29}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\AddIns\CodeRush
HKEY_LOCAL_MACHINE\SOFTWARE\Software\Microsoft\Visual Studio\{VSVersion}\Addins\CodeRush
HKEY_CURRENT_USER\SOFTWARE\Software\Microsoft\Visual Studio\{VSVersion}\Addins\CodeRush
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\Packages\{13041012-50AF-4d13-A1E1-4978B21E49CD}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\Packages\{BD359A86-BF88-4c4e-A7D2-6CDDA36C3B79}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\Packages\{02BD4ECB-C032-4ced-B3C1-51AD29309225}
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\InstalledProducts\DXCore
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\{VSVersion}\InstalledProducts\Refactor!
HKEY_CLASSES_ROOT\Installer\UpgradeCodes\781A3E6ADAAEC45469EF271B371F91AF

For 64-bit OS

HKEY_CLASSES_ROOT\Installer\Products\1B5C4D2C5C682AC4B90028FD5D8DFB62
HKEY_CLASSES_ROOT\Installer\UpgradeCodes\781A3E6ADAAEC45469EF271B371F91AF
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Developer Express\CodeRush for VS
HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Developer Express\CodeRush for VS
HKEY_CLASSES_ROOT\CLSID\{7EB58660-96F1-49CF-B8AF-F47152B8CE29}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\AddIns\CodeRush
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Software\Microsoft\Visual Studio\{VSVersion}\Addins\CodeRush
HKEY_CURRENT_USER\SOFTWARE\Wow6432Node\Software\Microsoft\Visual Studio\{VSVersion}\Addins\CodeRush
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\Packages\{13041012-50AF-4d13-A1E1-4978B21E49CD}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\Packages\{BD359A86-BF88-4c4e-A7D2-6CDDA36C3B79}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\Packages\{02BD4ECB-C032-4ced-B3C1-51AD29309225}
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\InstalledProducts\DXCore
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\{VSVersion}\InstalledProducts\Refactor!
HKEY_CLASSES_ROOT\Installer\UpgradeCodes\781A3E6ADAAEC45469EF271B371F91AF

5. Delete the DevExpressTools.Addin file from the following folders:

For Windows XP:

%AppData%\Microsoft\MsEnvShared\Addins

For Windows Vista, Windows 7 and up:

%ProgramData%\Microsoft\MSEnvShared\Addins

6. Navigate to the following folder:

%AppData%\Local\microsoft\VisualStudio\%VSVersion%\Extensions\

(replace the %VSVersion% in each of the Visual Studio versions you have installed)

Find the folders containing the “DevExpress.DXCore.MefComponents.dll” assembly and completely remove them.

Do the same (remove the entire folders containing the mentioned assemblies) in the following folder:

%Program Files%\Microsoft Visual Studio %VSVersion%\Common7\IDE\Extensions\DevExpress\

7. Download the latest version to make sure you are up-to-date and install it. Please visit DevExpress versions info page to learn about the most recent versions of our products.

—–
Products: all
Versions: all
VS IDEs: all
Updated: Aug/20/2012
ID: T015

How to install the IDE tools (CodeRush and/or Refactor!)

August 10th, 2010 Comments off

Once you download an installer from the DevExpress website, run it, and follow the instructions on the screen:

DevExpress CodeRush Installation 1

If you’re a registered user, choose the Registered Installation option, and enter your details on the next screen:

DevExpress CodeRush Installation 2

If you don’t have a license, you may install the product in the trial mode that lasts for 30 days. The functionality of the standard products, when installed in trial mode, is not reduced during this period.

On the next screen, you will be notified that CodeRush modifies the Visual Studio IDE:

DevExpress CodeRush Installation 2

I recommend you click the “See how prior to install” link to learn more.

Select the destination installation folder and accept the terms of the End User License Agreement, if you’re agree with them:

DevExpress CodeRush Installation 4

Installation progress is shown on the next screen. It may take up to several minutes to install, depending on the Visual Studio versions you have installed:

DevExpress CodeRush Installation 5

After the installation process is complete, click on the Finish button, and you’re done:

DevExpress CodeRush Installation 6

If you have questions regarding this installer or need assistance with the installation process, feel free to contact DevExpress by writing to: install@devexpress.com or support@devexpress.com.

—–
Products: all
Versions: 12.1 and up
VS IDEs: 2008 and up
Updated: Nov/29/2012
ID: T014

What is DevExpress DXperience?

August 10th, 2010 Comments off

DXperience is the .NET developer’s secret weapon. Get full access to a complete suite of professional components that let you instantly drop in new features, designer styles and fast performance for your applications. DXperience gives you access to DevExpress products and depending upon the subscription level you choose to purchase, you will receive additional services such as priority support and early access to new technologies.

The DXperience Subscription is available in four distinct versions:

Read more…

CodeRush Pro declaration features

August 4th, 2010 Comments off

CodeRush Pro includes powerful features to intelligently declare types (classes, structures, interfaces), members, fields, local variables and so much more.

Code Templates

Templates are blocks of code that expand from short abbreviations typed into the code editor. Using code templates decreases code creation time, because it avoids having to type the entire code manually and allows creating regular code sections with only a few keystrokes. Read more…

CodeRush Pro selection features

August 3rd, 2010 Comments off

CodeRush Pro includes several intelligent features for selecting and converting the selected code more efficiently.

Camel Case Select

If you need to select one or more words from inside a camel-case identifier, just use the Shift key along with the Camel Case Nav keys (Alt+Shift+Left/Right).

Quick Comment/Uncomment

The feature adds the capability to quickly comment or uncomment a multi-line block of code (or any text in the code editor) via a single shortcut. Only one shortcut is used to comment and uncomment of the current selection.

Read more…