Home > Overview > Refactorings preview hinting

Refactorings preview hinting

September 24th, 2010

Almost all refactorings have a preview hint which allows you to see the resulting code before a particular refactoring is performed. This is very useful, because it is a great help to understand what will happen in the code once an action is taken. Moving among available refactorings in the Refactor! popup menu or a SmartTag popup menu will be reflected in the preview for each one. Here are previews of some possible refactorings you can perform using the Refactor! popup menu:

Refactor! Refactoring sample

Refactor! Refactoring sample

Refactor! Refactoring sample

While the Refactor! popup menu is up, you are able to control preview hinting by holding the following keys:

  • CTRL – will hide the menu and the big yellow hint with a description of a refactoring.
  • SHIFT – will hide the resulting code preview window with a blue arrow pointing to the target code location

NOTE: these two keys aren’t available if you’re using a different way of listing available refactorings, e.g. SmartTag popup menu.

—–
Products: Refactor Pro and Refactor free editions
Versions: 10.2 and up
VS IDEs: any
Updated: Mar/23/2011
ID: R016

Similar Posts:

  1. Robert Leahey
    December 22nd, 2010 at 09:18 | #1

    Fatal error: Uncaught Error: Call to undefined function eregi_replace() in H:\root\home\megazoid-001\www\skorkincom\wp-content\plugins\bbcomments\BBComments.php:41 Stack trace: #0 H:\root\home\megazoid-001\www\skorkincom\wp-includes\class-wp-hook.php(289): render_comment() #1 H:\root\home\megazoid-001\www\skorkincom\wp-includes\plugin.php(212): WP_Hook->apply_filters() #2 H:\root\home\megazoid-001\www\skorkincom\wp-includes\comment-template.php(1028): apply_filters() #3 H:\root\home\megazoid-001\www\skorkincom\wp-content\themes\inove\functions.php(1163): comment_text() #4 H:\root\home\megazoid-001\www\skorkincom\wp-includes\class-walker-comment.php(179): custom_comments() #5 H:\root\home\megazoid-001\www\skorkincom\wp-includes\class-wp-walker.php(144): Walker_Comment->start_el() #6 H:\root\home\megazoid-001\www\skorkincom\wp-includes\class-walker-comment.php(139): Walker->display_element() #7 H:\root\home\megazoid-001\www\skorkincom\wp-includes\class-wp-walker.php(332): Walker_Comment->display_element() #8 H:\root\home\me in H:\root\home\megazoid-001\www\skorkincom\wp-content\plugins\bbcomments\BBComments.php on line 41
    WordPress › Error

    There has been a critical error on this website.

    Learn more about debugging in WordPress.