| <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
| <html> |
| <head> |
| <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <title> |
| Using Structured Selection |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Using Structured Selection |
| </h1> |
| <p> |
| Structured Selection lets you quickly select Java code in a syntax-aware way. |
| </p> |
| <p> |
| To use Structured Selection: |
| </p> |
| <ul> |
| <li> |
| In a Java editor, (optionally) select some text and press <kbd>Alt+Shift+Arrow Up</kbd> or select <strong>Edit > Expands Selection To > Enclosing |
| Element</strong> from the menu bar. |
| </li> |
| <li> |
| The current text selection is expanded to the inner-most syntax element (more precisely, <u>A</u>bstract <u>S</u>yntax <u>T</u>ree node) that encloses the selection. |
| </li> |
| </ul> |
| When a statement or a list of statements is selected, you can press <kbd>Alt+Shift+Arrow Right</kbd> or select <strong>Edit > Expands Selection To > Next |
| Element</strong>, which will expand the selection with the statement (if any exists) that is immediately <em>after</em> the selected statements. |
| <p> |
| When a statement or a list of statements is selected, you can press <kbd>Alt+Shift+Arrow Left</kbd> or select <strong>Edit > Expands Selection To > Previous |
| Element</strong>, which will expand the selection with the statement (if any exists) that is immediately <em>before</em> the selected statements.<br> |
| </p> |
| <p> |
| Pressing <kbd>Alt+Shift+Arrow Down</kbd> or selecting <strong>Edit > Expands Selection To > Restore Last Selection</strong> from the menu bar lets you restore |
| the previous structured selection. |
| </p> |
| <p> |
| <img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159"><br> |
| <a href="../concepts/concepts-7.htm">Java editor</a><br> |
| </p> |
| <p> |
| <img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br> |
| <a href="tasks-54.htm">Using the Java editor</a><br> |
| <a href="tasks-179.htm">Using Surround with Try/Catch</a><br> |
| <a href="tasks-87.htm">Extracting a method</a><br> |
| <a href="tasks-159.htm">Extracting a local variable</a><br> |
| <a href="tasks-161.htm">Inlining a local variable</a><br> |
| <a href="tasks-164.htm">Replacing a local variable with a query</a> |
| </p> |
| <p> |
| <img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159"><br> |
| <a href="../reference/ref-menu-edit.htm">Edit menu</a> |
| </p> |
| <p> |
| <a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" height="14" width="324"></a> |
| </p> |
| </body> |
| </html> |
| |