https://github.com/dcortes92/vs-freemarker
FreeMarker language colorization extension for Visual Studio Code
https://github.com/dcortes92/vs-freemarker
extension freemarker freemarker-syntax ftl snippets visual-studio visual-studio-code
Last synced: 21 days ago
JSON representation
FreeMarker language colorization extension for Visual Studio Code
- Host: GitHub
- URL: https://github.com/dcortes92/vs-freemarker
- Owner: dcortes92
- License: mit
- Created: 2015-12-16T04:30:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-11T06:07:26.000Z (over 4 years ago)
- Last Synced: 2025-02-13T22:34:33.917Z (2 months ago)
- Topics: extension, freemarker, freemarker-syntax, ftl, snippets, visual-studio, visual-studio-code
- Size: 316 KB
- Stars: 25
- Watchers: 9
- Forks: 15
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
⚠️ This repository or library is not maintained by me anymore. If you want to contribute, feel free to ping me and I'll transfer ownership of the repo ⚠️
# FreeMarker for Visual Studio Code
FreeMarker language colorization extension for Visual Studio Code. You can read more about FreeMarker [here](http://freemarker.incubator.apache.org/).## Usage
[Install](https://marketplace.visualstudio.com/items?itemName=dcortes92.FreeMarker) the extension and open any `.ftl` file.
This is based on the TextMate bundle found on [this](https://github.com/bburbach/textmate-freemarker-bundle) repo.
Alternative FreeMarker syntax with square brackets is fully supported.
### Snippets
Type **#** followed by the first letters of a FreeMarker tag name and the editor will propose you all the available autocomplete options. Snippets are also available for alternative FreeMarker syntax. They will have the same shortcuts of regular ones, with an underscore \_ character at the end. For instance:
* with **#if** shortcut, you will get:
```
<#if (condition)>
#if>
```
* while with **#if\_** shortcut the result will be:
```
[#if (condition)]
[/#if]
```
#### Snippets list
Shortcut | Description
---------|---------
dir | Directive
d | Simple Directive
mdef | Macro definition
ma | Macro
m | Simple Macro
a | #assign short
assign | #assign long
l | #local short
local | #local long
g | #global short
global | #global long
set | #setting short
setting | #setting long
if | #if
e | #else
eif | #elseif
li | #list
include | #include
imp | #import
function | #function / #return
sw | #switch / #case / #default
ca | #case
att | #attempt / #recover## Contributing
Contributions are welcome. Fork the repo and create a pull request with your changes.