Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8590721
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:21:32+00:00 2026-06-11T23:21:32+00:00

In jsp files whenever I hit the CTRL+/ shortcut (on windows) the line is

  • 0

In jsp files whenever I hit the CTRL+/ shortcut (on windows) the line is commented with “output comment”, that means comments visible in the generated html:

<!-- Output comment -->

I instead want to bind this shortcut with the generation of “hidden comments”, that are comments that will not appear in the output:

<%-- Hidden comment --%>

I tried to find where this shortcut is defined but I had no luck.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:21:33+00:00Added an answer on June 11, 2026 at 11:21 pm

    Click on Preferences -> Browse Packages... menu to find the configuration files.

    The shortcut are defined in HTML/Comments.tmPreferences. You can change this file to modify the comments of all jsp and html files.

    To modify just the jsp comments, create a file named JavaServerPagesComments.tmPreferences in Packages/Java folder with this content:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>name</key>
        <string>Comments</string>
        <key>scope</key>
        <string>text.html.jsp</string>
        <key>settings</key>
        <dict>
            <key>shellVariables</key>
            <array>
                <dict>
                    <key>name</key>
                    <string>TM_COMMENT_START</string>
                    <key>value</key>
                    <string>&lt;&#37;-- </string>
                </dict>
                <dict>
                    <key>name</key>
                    <string>TM_COMMENT_END</string>
                    <key>value</key>
                    <string> --&#37;&gt;</string>
                </dict>
            </array>
        </dict>
        <key>uuid</key>
        <string>54444C7B-54D2-41F6-A817-AEE243C3D45A</string>
    </dict>
    </plist>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got some jsp files that are supposed to output xhtml. They seem to
I have noticed that .jsi and .jsp files work almost the same way. So
I am having numerous jsp files..depends on login(user/admin) i want that files to be
I have a simple Struts2 app that is serving JSP files just fine. But
I am getting a javax.servlet.jsp.JspException in one of the jsp files that my website
When auto-formatting JSP files in Eclipse using Ctrl+Shift+F, it is trying to fit as
I have several JSP files that are included into other JSP pages. Some of
We have 600 jsp files and I need to find out where we are
I am facing a problem when I move my JSP files along with CSS
I work with a front-end developer who writes JSP files. We have a form

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.