IntelliJ IDEA provides extensive editing support for ColdFusion files, and facilities for deploying applications to the
ColdFusion
server.
On this page:
Prerequisites
Before you start working with ColdFusion, make sure that the CFML Support plugin is enabled. The plugin is bundled with IntelliJ IDEA and is activated by default. If it is not, enable the plugin as described in Enabling and Disabling Plugins.
ColdFusion server
should be downloaded and installed on your machine.
Coldfusion support
ColdFusion files are marked with
icon.
ColdFusion support includes:
-
Coding assistance:
- Code completion for tags, attributes, attribute values, functions and variable of the current scope, function arguments, functions of Java classes and components created through 'createObject' function, for components' and Java classes' names in 'createObject', for inherited methods of a component.
- Error and syntax highlighting.
- Code formatting and folding.
-
Numerous ways to navigate through the source code, among them:
- Ability to open a file or component with the specified name.
- Navigating with Structure View.
- (⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 Click⌘B, ⌘Button1 Click, Button2 Click, ⌘B, ⌘Button1 Click or Button2 ClickF3, ⌃Button1 Click, F3 or ⌃Button1 ClickF12, ⇧ F2, ^ B, ^ Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click, Button2 Click, F12, ⇧F2, ⌃B, ⌃Button1 Click or Button2 Click^ ⌥ G, Escape, Period, ⌥ Period, ^ Button1 Click, ⌃⌥G, ⎋, ., ⌥., ⌃Button1 Click, ⌃⌥G, ⎋, ., ⌥. or ⌃Button1 Click).
- Advanced facilities to search through the source code.
-
Code generation
- Generating code stubs based on file templates during file creation.
- Inserting, expanding, and generating code blocks using live templates.
- Creating various applications elements via intention actions.
- Ability to create line and block comments (⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /⌘/, ⌘NumPad /, ⌘/ or ⌘NumPad /^ Slash, ^ NumPad /, ^ Colon, ⌃/, ⌃NumPad /, ⌃:, ⌃/, ⌃NumPad / or ⌃:⌥ Semicolon, ⌥; or ⌥;/⌥⌘/, ⌥⌘NumPad /, ⌃⇧/, ⌃⇧NumPad /, ⇧⌘/, ⇧⌘NumPad /, ⌥⌘/, ⌥⌘NumPad /, ⌃⇧/, ⌃⇧NumPad /, ⇧⌘/ or ⇧⌘NumPad /⌃⇧/, ⌃⇧NumPad /, ⇧⌘/, ⇧⌘NumPad /, ⌃⇧/, ⌃⇧NumPad /, ⇧⌘/ or ⇧⌘NumPad /⌃⇧/ or ⌃⇧/^ ⇧ Slash, ^ ⇧ NumPad /, ^ ⇧ Colon, ⌃⇧/, ⌃⇧NumPad /, ⌃⇧:, ⌃⇧/, ⌃⇧NumPad / or ⌃⇧:^ ⇧ Slash, ^ ⇧ NumPad /, ⌃⇧/, ⌃⇧NumPad /, ⌃⇧/ or ⌃⇧NumPad /).
- Viewing method parameters information.
- Run/debug configuration for ColdFusion.
- Open the Preferences dialog box (⌘, or ⌘,⌘, or ⌘,⌘, or ⌘,⌥ F7, ⌥F7 or ⌥F7^ ⌥ S, ⌃⌥S or ⌃⌥S) and click the ColdFusion node.
- On the ColdFusion page that opens,
specify mappings between local folders with the application sources and the paths on the server.
-
To add a new mapping,
click
(⌘N, ⌃⏎, ⌘N or ⌃⏎⌃N, ⌃⏎, ⌃N or ⌃⏎⌘N, ⌃⏎, ⌘N or ⌃⏎⌥ Insert⌥ Insert) and
specify the local folder with the application sources in the Directory Path field.
Type the path manually or click
and choose the folder in the dialog box that opens.
In the Logical Path field, type the URL address on the server to deploy the contents of the specified local folder to.
-
To remove a mapping from the list, select the mapping and
click
(⌘⌦ or ⌘⌦⌘⌦ or ⌘⌦⌥ Delete, ⌥⌦ or ⌥⌦).
-
To add a new mapping,
click