Remote Makefile Editor
The Remote Makefile Editor provides the following features:
- Syntax coloring
- Folding
- Content assist
- Open Declarations
- Save As action
- Outline view
- Hovers.
Syntax coloring
The Remote Makefile Editor color codes syntax, such as comments, and makefile targets. This coloring makes it easier to visually understand the structure of the source code that you are editing. You can also modify the color and font settings through the Remote Makefile Editor preference page.
Folding
When the folding preference is activated, the Remote Makefile Editor collapses, or folds, the contents of the editor into sections which make it more manageable.
Save As
You can use the Save As action to save documents to a remote location.
Opening declarations
You can use the Open Declaration action to open the declaration of a selected makefile element.
About this task
To invoke the Open Declaration action, do any of the following in the Remote Makefile Editor:
- Right-click the reference to open the pop-up menu and select Open Declaration.
- Place the cursor on the reference and press F3.
The declaration of the selected makefile element is located and the cursor is moved to the declaration. In the case where the declaration is another file in the workspace, the file that contains this declaration is opened.
Using Hovers in the Remote Makefile Editor
You can use hovers to view the value of a variable.
About this task
Procedure
To view a variable's value in a hover, complete the following step:
Using content assist in the Remote Makefile Editor
You can use content assist to help you complete a target or variable in the Remote Makefile Editor.
About this task
Procedure
Using the Outline view in the Remote Makefile Editor
The Outline view is a tree representation of the current makefile that you are editing. It is updated as text is modified in the editor.
About this task
This view displays a structural view of makefile elements such as variables, targets, and included files. When you select any of these elements in the Outline view, the editor moves to the location of the element in the source file.
You can display the following elements in the Outline view:
- variables
- targets
- commands
- included makefiles
- conditional statements
- Order the Outline view alphabetically.
Comment and Uncomment
You can use the Comment and Uncomment actions in the Remote Makefile Editor to toggle whether or not a line is a comment line.
About this task
- Place the cursor on a line, or select multiple lines, then right-click on a line to open the pop-up menu and select Comment.
- Place the cursor on a line, or select multiple lines, and press Ctrl+/.
To change one or more lines from a comment line, to a regular line, do any of the following in the Remote Makefile Editor:
- Place the cursor on a line, or select multiple lines, then right-click on a line to open the pop-up menu and select Uncomment.
- Place the cursor on a line, or select multiple lines, and press Ctrl+\.