Autpcomplete for comments

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Autpcomplete for comments

Post by syrupcore »

when I type <!-- or /* it'd be cool if it added the closing tag for you, leaving your cursor in the middle - like when I type <p>.

as an added bonus, if the comment is being inserted right after a closing tag, the program could check to see where the opening tag is and if it has an id, offer that as autocomplete.

so if I had this:

Code: Select all

<div id="foo">
    some content
</div> <!--
after I typed "--" it would add --> to the other side of the cursor and if I hit ctrl+space or something, it would offer to insert " /end foo " like: "<!-- /end foo -->.

hopefully at least the first part isn't too much work/overhead.

Thanks,
will
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Post by chrisjlocke »

With you being Mr Snippet, I would have thought you'd have a keyboard shortcut assigned to <!-- --->
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

I do! :)

...but I'm running out of key strokes. Also, if you use snippets for comments you lose some of the cool comment features in webuilder (like uncomment). Plus, you have to have a snippet for /* as well as <!-- instead of just a "insert comment and know which language I'm using" shortcut.

Lazily yours,
Mr. Snippet
Post Reply