[ANN] CommentPlugin 0.1
http://www.intellij.org/twiki/bin/view/Main/CommentPlugin
Description. Plugin for commenting (Ctrl-/) in custom files (e.g. properties, cs, bat, sh, pl, py, cpp).
How to deploy: copy the jar file (e.g. comment.jar) to the plugins directory ($IDEA_HOME/plugins).
Relevant posts/requests:
http://www.intellij.net/tracker/idea/viewSCR?publicId=4510 ("Ctrl-/, Ctrl-Shift-/ should work for custom file types")
http://www.intellij.net/tracker/idea/viewSCR?publicId=10530 ("Comment/Uncomment should work with user defined file types")
http://www.intellij.net/forums/thread.jsp?forum=3&thread=4270&message=139865 ("Comments and custom files")
What works now. Line comments for the following extensions:
(for now it's all hard-coded, see Comment/src/main/org/tzambalayev/ideaplugins/comment/CommentTypeMap.java)
Note that you don't have to register custom file types.
To do:
1) block comments (e.g. /**/ in cpp).
2) comments in html
Tested with #811 and #700.
How to build: a) Specify the location of $idea.home in build.properties b) ant clean main.
Timur
请先登录再写评论。
It would be nice if you enabled commenting for css (stylesheet) files (/*
whatever */) and js (javascript) files, and better yet, have a configuration
panel or some kind of integration with IntelliJ's file types configuration.
Nice idea, hopefully it will lead to something much larger (e.g. defining
syntax for file types, for example to show all functions in a js file just
like IJ knows to do for Java files).
Amnon
"Timur Zambalayev" <itnadmin@jetbrains.com> wrote in message
news:5068099.1050788274338.JavaMail.jrun@is.intellij.net...
>
properties, cs, bat, sh, pl, py, cpp).
>
directory ($IDEA_HOME/plugins).
>
>
Ctrl-Shift-/ should work for custom file types")
("Comment/Uncomment should work with user defined file types")
>
http://www.intellij.net/forums/thread.jsp?forum=3&thread=4270&message=139865
("Comments and custom files")
>
>
>
Comment/src/main/org/tzambalayev/ideaplugins/comment/CommentTypeMap.java)
>
>
>
>
ant clean main.
>
>
css comments support. Will be done when block comments are done.
js comments support. I added support for line comments in js files in 0.1.1 (uploaded). To do: block comments.
Configuration panel. Added to the todo list.
Integration with IDEA's custom files. I don't think it's possible now. Filed a request ( http://www.intellij.net/tracker/idea/viewSCR?publicId=11586 ).
Timur