Beautifying Code
Code Beautifiers
Code beautifiers, available for many languages, reformat the layout of existing text based on settings that
you specify, such as begin/end styles and indenting.
To beautify selected lines of code, or to beautify the entire buffer, from the main menu, click
Format
→
Beautify
(or use the
gui_beautify
command). A dialog box is displayed with functions specific to the type
of project that is active. If an HTML project is active, then the HTML Beautifier dialog appears with op-
tions. If a GNU C/C++ project is active, then the C/C++ Beautifier dialog opens, and so on. Beautifying is
supported for the languages listed below. Follow the cross-reference links to learn more about working
with each beautifier.
• Ada - See
Ada Beautifier
.
• C/C++, C#, Java, JavaScript, Slick-C
®
- These beautifiers contain the same options and settings. See
C/C++ Beautifier
.
• CFML, HTML - These beautifiers contain the same options and settings. See
HTML Beautifier
.
• Javadoc - See
Javadoc Beautifier
.
• XML, XSD - These beautifiers contain the same options and settings. See
XML Beautifier
.
Reflowing Text
To reflow text in the current paragraph according to your margin settings, click
Format
→
Format Para-
graph
or use the
reflow_paragraph
command. Margin settings are defined on the
Word Wrap Tab
(
Win-
dow
→
Preferences
, expand
SlickEdit
and click
General
in the tree, then double-click the
File Exten-
sion Setup
setting).
When you reflow a paragraph, the cursor will be kept at the same location within the current paragraph
after reflow has occurred, unless the
Reflow next
option is selected (
Window
→
Preferences
, expand
SlickEdit
and click
General
in the tree, then double-click the
General
setting and select the
More Tab
). If
Reflow next
is selected, the
reflow_paragraph
command places the cursor on the next paragraph after
it has reformatted the current paragraph.
Comments can also be reflowed according to the comment wrap settings. See
Reflowing Comments
for
more information.
Code Beautifiers
197
Содержание Corev3.3 for Eclipse
Страница 1: ...Think Slick Corev3 3 for Eclipse...
Страница 2: ......
Страница 3: ...SlickEdit Core v3 3 for Eclipse...
Страница 5: ......
Страница 6: ......
Страница 14: ...xii...
Страница 20: ...xviii...
Страница 22: ...xx...
Страница 23: ...Chapter 1 Introduction 1...
Страница 41: ...Chapter 3 User Interface 19...
Страница 61: ...Chapter 4 User Preferences 39...
Страница 80: ...BODY BODY HTML HTMLEOF Restoring Settings on Startup 58...
Страница 82: ...60...
Страница 83: ...Chapter 5 Context Tagging 61...
Страница 97: ...Chapter 6 Editing Features 75...
Страница 124: ...Code Templates 102...
Страница 187: ...The finished code is shown as follows Figure 6 24 Dynamic Surround Example 4 Dynamic Surround 165...
Страница 238: ...Figure 6 49 Test Parsing Configuration Example 1 C Refactoring 216...
Страница 240: ...Finally the following example shows a test resulting in no errors or warnings C Refactoring 218...
Страница 241: ...Figure 6 51 Test Parsing Configuration Example 3 Reviewing Refactoring Changes 219...
Страница 250: ...228...
Страница 251: ...Chapter 7 Language Specific Editing 229...
Страница 275: ...Java Refactoring See Java Refactoring for information about Java refactoring in SlickEdit Core Java Refactoring 253...
Страница 328: ...306...
Страница 329: ...Chapter 8 Tools and Utilities 307...
Страница 334: ...6 Click Save The Save Multi File Output dialog box opens Figure 8 3 Save Multi File Output Dialog DIFFzilla 312...
Страница 350: ...328...
Страница 351: ...Chapter 9 Macros and Macro Programming 329...
Страница 360: ...338...
Страница 361: ...Chapter 10 SlickEdit Core Dialogs 339...
Страница 375: ...Find and Replace View 353...
Страница 491: ...Chapter 11 Appendix 469...
Страница 567: ......
Страница 568: ......