The Code Snippets feature offers a quick way to store and re-use code blocks and content. Comment your snippets just as you would any code block.
![]() |
To create a code snippet: |
The default location for Snippets is the \UserData\Snippets
folder below your ColdFusion Studio root directory.
Note | Because snippets can be created as start and end blocks, you can use them to surround other tags and content. This is handy for inserting special formatting, navigation elements, and script blocks. Simply highlight the content you want to surround, then insert the snippet. |
To insert a snippet, double-click an entry in the Snippets tab or right-click and select Insert into document from the menu.
Use the snippets shortcut menus to manage snippets and snippet folders.
You can share code snippets with other developers by giving them access to a shared folder on your machine or on another network machine.
![]() |
To create a shared snippets folder: |
Anyone with access to the shared folder can add, edit, and delete snippets.
Open the Options > Customize dialog box and select the Snippet Shortcuts tab to enable a keyboard combination for a snippet. Select a snippet and press keys to enter the combination in the box at the bottom.
If a combination is in use, the current command appears below the shortcut box. To overwrite a combination, click Apply.