Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force.com IDE Code templates for Visualforce
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.Account.Fields.Name.Label">$$ObjectType.Account.Fields.Name.Label
</template><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.Contact.accessible">$$ObjectType.Contact.accessible</template><template autoinsert="true" context="html_attribute_value" deleted="false" description="" enabled="true" name="$ObjectType.SobjectName.Label">$$ObjectType.Account.label</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:form">&lt;apex:form id="formid"&gt;
${line_selection}
&lt;/apex:form&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlock">&lt;apex:pageBlock title="My Content" mode="edit"&gt;
&lt;apex:pageBlockButtons&gt;
&lt;apex:commandButton action="{!save}" value="Save"/&gt;
&lt;/apex:pageBlockButtons&gt;
&lt;apex:pageBlockSection title="My Content Section" columns="2"&gt;
&lt;apex:inputField value="{!account.name}"/&gt;
&lt;apex:inputField value="{!account.site}"/&gt;
&lt;apex:inputField value="{!account.type}"/&gt;
&lt;apex:inputField value="{!account.accountNumber}"/&gt;
&lt;/apex:pageBlockSection&gt;
&lt;/apex:pageBlock&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockButtons">&lt;apex:pageBlockButtons&gt;
&lt;apex:commandButton action="{!save}" value="Save"/&gt;
&lt;/apex:pageBlockButtons&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockSectionItem"> &lt;apex:pageBlockSectionItem&gt;
&lt;apex:outputLabel value="Account Name" for="account__name"/&gt;
&lt;apex:inputText value="{!account.name}" id="account__name"/&gt;
&lt;/apex:pageBlockSectionItem&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:pageBlockTable">&lt;apex:pageBlockTable value="{!account.Contacts}" var="item"&gt;
&lt;apex:column value="{!item.name}"/&gt;
&lt;/apex:pageBlockTable&gt; </template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:panelGrid"> &lt;apex:panelGrid columns="3" id="theGrid"&gt;
&lt;apex:outputText value="First" id="theFirst"/&gt;
&lt;apex:outputText value="Second" id="theSecond"/&gt;
&lt;apex:panelGroup id="theGroup"&gt;
&lt;apex:outputText value="Third" id="theThird"/&gt;
&lt;apex:outputText value="Fourth" id="theFourth"/&gt;
&lt;/apex:panelGroup&gt;
&lt;/apex:panelGrid&gt;</template><template autoinsert="true" context="html_tag" deleted="false" description="" enabled="true" name="apex:sectionHeader">&lt;apex:sectionHeader title="Title" subtitle="SubTitle" /&gt;</template></templates>
@abhinavguptas

This comment has been minimized.

Copy link
Owner Author

@abhinavguptas abhinavguptas commented Oct 12, 2011

For more details about this gist, please check this blog post : http://www.tgerm.com/2011/10/visualforce-templates-snippets-forcecom.html

@sbutterfield

This comment has been minimized.

Copy link

@sbutterfield sbutterfield commented Dec 30, 2011

I wonder if we could get an XML or JSON structured document of all VF Sytax (and properties) and write a program to parse through it and create the appropriate template for consumption in Eclipse? I could ask one of the VF Dev's if they have an XSD or something if you might have time to collaborate on this.

@abhinavguptas

This comment has been minimized.

Copy link
Owner Author

@abhinavguptas abhinavguptas commented Dec 31, 2011

That would be awesome to have that XSD from VF dev team, Eclipse would be more fun with complete set of VF tags. I can for sure spare time to do convert it to compatible form.

@sbutterfield

This comment has been minimized.

Copy link

@sbutterfield sbutterfield commented Dec 31, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.