␡
- Opening the Source Editor
- Managing Automatic Insertion of Closing Characters
- Displaying Line Numbers
- Generating Code Snippets without Leaving the Keyboard
- Using Code Completion
- Inserting Snippets from Code Templates
- Using Editor Hints to Generate Missing Code
- Matching Other Words in a File
- Generating Methods to Implement and Override
- Generating JavaBeans Component Code
- Creating and Using Macros
- Creating and Customizing File Templates
- Handling Imports
- Displaying Javadoc Documentation While Editing
- Formatting Code
- Text Selection Shortcuts
- Navigating within the Current Java File
- Navigating from the Source Editor
- Searching and Replacing
- Deleting Code Safely
- Changing a Method's Signature
- Encapsulating a Field
- Moving a Class to a Different Package
- Moving Class Members to Other Classes
- Creating a Method from Existing Statements
- Creating an Interface from Existing Methods
- Extracting a Superclass to Consolidate Common Methods
- Changing References to Use a Supertype
- Unnesting Classes
- Tracking Notes to Yourself in Your Code
- Comparing Differences Between Two Files
- Splitting the Source Editor
- Maximizing Space for the Source Editor
- Changing Source Editor Keyboard Shortcuts
This chapter is from the book
Splitting the Source Editor
You can split the Source Editor to view two files simultaneously or to view different parts of the same file.
To split the Source Editor window:
- Make sure at least two files are already open.
- Click a tab on one file; hold down the mouse button; and drag the tab to the far left, far right, or bottom of the Source Editor window.
- Release the mouse button when the red outline that appeared around the tab when you started dragging changes to a rectangle indicating the placement of the split window.
To view different parts of the same file simultaneously:
- Click the file's tab in the Source Editor and choose Clone Document to create a second tab for the same document.
- Drag and drop one of the file tabs to create a split Source Editor area. (See the procedure above for info on dragging and dropping Source Editor tabs.)