Editing an Ant Script

See Also 

You can edit an Ant script:

Editing an Ant Script in the Source Editor

Ant Editor Shortcuts

The following table lists the most commonly-used Ant editor shortcuts.

Keyboard
Shortcut
Description
of Command
Control+F Search for text in the currently selected file. The Source Editor jumps to the first occurrence of the string and highlights all matching strings. You can use F3 to jump to the next occurrence and Shift+F3 to jump to the previous.
Control+H Replace text in the currently selected file.
F3 Find the next occurrence of the word you searched for.
Shift+F3 Find the previous occurrence of the word you searched for.
Control+F3 Search for the next occurrence of the word that the insertion point is on.
Alt+Shift+H Turn off search result highlighting.
Control+F2 Add a bookmark (bookmark icon) to the line of code that the insertion point is currently on. If the line already contains a bookmark, this command removes the bookmark.
F2 Go to the next bookmark.
Control+L Generate the next matching word. Type a few characters and press Control+L to generate the next word that begins with those characters.
Control+K Generate the previous matching word.
Alt+L Go to the next location in the jump list for the currently selected file. The jump list is a history of all locations where you made modifications in the Editor.
Alt+K Go to the previous location in the jump list for the currently selected file.
Alt+Shift+L Go to the next jump list location in all files (not the currently selected file).
Alt+Shift+K Go to the previous jump list location in all files.
Control+T Shift the current line or selection one tab to the right.
Control+D Shift the current line or selection one tab to the left.
Control+E Remove the current line.

Editing an Ant Script Through the Filesystems Window

warning When you edit an Ant script using commands in the Filesystems window, the IDE sometimes makes minor modifications in the script's whitespace or attribute ordering. If your script is under version control, these changes make the script appear to be modified in places where no meaningful changes have occurred.

Additionally, you should avoid editing an Ant script in the Filesystems window if the script contains an XML entity include. Ant scripts can use XML entity includes to include standard sets of targets or definitions that are located in external XML files. The IDE cannot interpret the syntax used by XML entity includes and can damage your script if you edit it in the Filesystems window.

See Also
Ant Script Node
Creating an Ant Script
Running an Ant Script
Executing a Target
Configuring Ant Settings

Legal Notices