The PHP Source Editor is a full-featured text editor that is integrated with other parts of the IDE. You open the Source Editor by creating a new PHP file or double-clicking a PHP file node in the Projects window, Files window, or Navigator window.
The PHP Source Editor has the following features:
Command | Description |
---|---|
Source Editor Tabs |
The top of the Source Editor has a tab for each open document. Each tab shows the name of the document. If the document has been modified and has not been saved, there is an asterisk (*) after its name. You can right-click a tab to access the following commands: |
Close All Documents |
Closes all files that are open in the Source Editor area. |
Close Other Documents |
Closes all files except for the selected file. |
Save Document |
Saves the selected file. |
Clone Document |
Opens a new tab for the same document. This command is particularly useful in combination with splitting the window so that you can view different parts of the same file simultaneously. |
Close Window |
Closes the selected file. |
Maximize Window/Restore Window |
Maximize Window hides other windows and expands the Source Editor to use all of the window space in the IDE. Restore Window returns the windows to the state that they were before you chose Maximize Window. You can also maximize and restore the Source Editor by double-clicking a tab. |
Undock/Dock Window |
Opens document in an editor in a new window. If window is already undocked, the Dock Window option appears instead. |
Select in Projects |
Highlights the file's node in the Projects window. |
Local History |
Opens a menu from which you can view the changes you made to the file or revert those changes. |
[version control] |
If the file is under version control, this option appears. The option opens a menu of relevant version control commands. |
Diff To... |
Diff the file to another file in its folder or another file open in the editor. |
Copy File Path |
Copies the path to the file to the clipboard. |
Editors |
Opens a menu from which you can view the file in the source editor view or the local history view. |
Split |
Opens a menu from which you can choose to split the view of the current file into two tabs. |
Toolbar |
The editor toolbar is at the top of the Source Editor window. The toolbar has buttons for various navigating and editing shortcuts, which vary according to the type of file you are editing. Hold the cursor over a button to display a description of the command. |
Left Margin |
The left margin displays annotation glyphs that indicate line status, such as breakpoints and warnings. |
Error Stripe |
The error stripe is the strip to the right of the right scroll bar and contains marks for various things in your file, such as errors, bookmarks, and comments for the To Do list. The error stripe represents the whole file, not just the lines currently displayed. You can immediately identify whether your file has any errors without having to scroll through the entire file. You can double-click a mark in the error stripe to jump to the line that the mark refers to. |
Status Line |
The Source Editor status line is in the bottom right corner of the IDE. The first area of the status line shows the current line number and row number in the form line:row. The second area of the status line indicates the insertion mode (INS or OVR). The text area on the right is used for status messages.. |
Related Topics
Developing Applications with NetBeans IDE,
Developing Applications with NetBeans IDE,
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |