Home > eclipse > Snippets in CFEclipse

Snippets in CFEclipse

Found this on Ray’s site where Bob wrote it in his comments to one article, thanks Bob (article)

Snippets in CFEclipse

Set directory in Eclipse: Window > Preferences > CFEclipse > alter File Paths To Snippets Directory

To create a snippet in Eclipse, open Snip Tree View (Window > Show View > Snip Tree View). Click the + icon to add a new snippet. ‘Insert’ inserts the current snippet into your CF document.

Each snippet comprises one XML file, for example here’s a basic CFQUERY for a SELECT:

select
select
<!–[CDATA[
SELECT
FROM
WHERE
]]–>

If you’re working in a team environment, you could point everyone’s snippet file path to the same network directory in order to share snippets.

PS: remove before pasting in Eclipse

Advertisements
Categories: eclipse
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: