Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>JSTL snippets by debNew to Visual Studio Code? Get it now.
JSTL snippets by deb

JSTL snippets by deb

Debraj Bhal

|
1,042 installs
| (1) | Free
This extension generates JSTL snippets for .jsp although the language mode is HTML in vscode.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

JSTL snippets by deb

JSTL snippets by deb contains almost all possible JSTL snippets. It is easy to access them by just typing a few related letters to the name of snippet as shown in the below gifs and images.

The best thing is just create the file with .jsp extension and keep the Language mode as HTML. This takes care that you can access both emmet features and jstl-snippets-by-deb features at the same time.

It works only for HTML language mode which is default for jsp. If it is different just change it from the bottom right corner.

Features

JSTL tagShortcutDescription
c:forEach..begin..endcforEachJSTL for each
c:forEachcforEachJSTL for each
c:ifcifJSTL if
c:choosecchooseJSTL choose
c:choose when...otherwisecchooseJSTL choose with when and otherwise
c:choose when otherwisecchooseJSTL choose with when and otherwise
c:whencwhenJSTL when
c:otherwisecotherwiseJSTL otherwise
$$JSTL $
c:setcsetJSTL set one line
c:set..csetJSTL set
c:set...csetJSTL set with scope
c:outcoutJSTL out
c:importcimportJSTL import
c:removecremoveJSTL remove
c:catchccatchJSTL catch
c:forTokenscforTokensJSTL for tokens
c:paramcparamJSTL url param
c:urlcurlJSTL url
c:redirectcredirectJSTL redirect
fn:containsfncontainsJSTL function contains:
boolean contains(java.lang.String, java.lang.String)
fn:containsIgnoreCasefncontainsIgnoreCaseJSTL function contains ignore case:
boolean containsIgnoreCase(java.lang.String, java.lang.String)
fn:endsWithfnendsWithJSTL function ends with:
boolean endsWith(java.lang.String, java.lang.String)
fn:escapeXmlfnescapeXmlJSTL escape xml:
java.lang.String escapeXml(java.lang.String)
fn:indexOffnindexOfJSTL index of:
int indexOf(java.lang.String, java.lang.String)
fn:trimfntrimJSTL trim:
java.lang.String trim(java.lang.String)
fn:startsWithfnstartsWithJSTL starts with:
boolean fn:startsWith(String input, String prefix)
fn:splitfnsplitJSTL split:
java.lang.String[] split(java.lang.String, java.lang.String)
fn:toLowerCasefntoLowerCaseJSTL to lower case:
String fn:toLowerCase(String input)
fn:toUpperCasefntoUpperCaseJSTL to upper case:
String fn:toUpperCase(String input)
fn:substringfnsubstringJSTL function substring:
String fn:substring(String inputstring, int start, int end)
fn:substringAfterfnsubstringAfterJSTL function substring after:
String fn:substringAfter(String input, String afterstring)
fn:substringBeforefnsubstringBeforeJSTL function substring before:
String fn:substringBefore(String input, String beforestring)
fn:lengthfnlengthJSTL function length:
int length(java.lang.Object)
fn:replacefnreplaceJSTL function replace
String fn:replace(String input, String search_for, String replace_with)
fmt:parseNumberfmtparseNumberJSTL parse number:
body content
fmt:timeZonefmttimeZoneJSTL time zone:
body content
fmt:formatNumberfmtformatNumberJSTL format number:
other attributes:groupingUsed,maxIntegerDigits,maxFractionDigits,pattern
fmt:parseDatefmtparseDateJSTL parse date
fmt:bundlefmtbundleJSTL bundle
fmt:setTimeZonefmtsetTimeZoneJSTL set time zone
fmt:setBundlefmtsetBundleJSTL set bundle
fmt:messagefmtmessageJSTL message
fmt:formatDatefmtformatDateJSTL format date
x:outxoutJSTL xml out
x:parsexparseJSTL xml parse
x:setxsetJSTL xml set
x:choosexchooseJSTL xml choose
x:whenxwhenJSTL xml when
x:otherwisexotherwiseJSTL xml otherwise
x:ifxifJSTL xml if
x:transformxtransformJSTL xml transform
x:paramxparamJSTL xml param
sql:setDataSourcesqlsetDataSourceJSTL sql set data source
sql:querysqlqueryJSTL sql query
sql:updatesqlupdateJSTL sql update
sql:paramsqlparamJSTL sql param
sql:dateParamsqldateParamJSTL sql date param
sql:transactionsqltransactionJSTL sql transaction
jstl:corejstlcoreJSTL core taglib
jstl:functionsjstlfunctionsJSTL functions taglib
jstl:fmtjstlfmtJSTL formatting taglib
jstl:xmljstlxmlJSTL xml taglib
jstl:sqljstlsqlJSTL sql taglib

Requirements

There are no extra requirements , you just need to have support for HTML language mode in vscode.

Release Notes

This is a very new extension. The initial version is released.

0.0.1

Initial release of the extension.

0.0.2

Added a icon for the extension.

Know the author

  • Connect with me on LinkedIn. I did love to hear how you feel using this extension.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft