Is there a (language specific) way to toggle comments in gEdit, like Ctrl + k and Ctrl + Shift + k in Notepad++.
Thanks!
Is there a (language specific) way to toggle comments in gEdit, like Ctrl + k and Ctrl + Shift + k in Notepad++.
Thanks!
What do you mean when you say toggle comments?
Could you post a screenshot, perhaps, of it in action?
Regards
Iain
I am not aware of this feature in gedit, but it can be set in emacs which is much more powerful for coding anyways.
One ought, every day at least, to hear a little song, read a good poem, see a fine picture, and, if it were possible, speak a few reasonable words...
Before, the text looks like this -
After Ctrl + K (the lines were selected) the text gets commented -
This is from Notepad++ in Windows. It's a feature that I constantly use. If Gimp does not have this, then does it allow vertical selection?
Ah, I get you.
No, I don't think this feature is part of GEdit.
Wouldn't it be better to use an IDE more suited.
Geany is a good one.
apt://geany
To switch between comment on/off in it, just highlight and press Ctrl+E
Regards
Iain
[EDIT]
Action shot:
Last edited by ibuclaw; August 5th, 2008 at 12:17 AM.
Thanks for both your replies. I was trying to avoid emacs because it's got a steep learning curve, and I'm not a power user. Nonetheless, I've heard pretty good things about it.
Geany looks more like my cup of tea. I played around with it and liked it a lot. Definitely keeping it.
Sorry, I meant gedit there.
Haha, Emacs, steep learning curve? bah, nonsense
Vim is my editor of choice, I use it for everything and nothing else
Regards
Iain
@shashank_hi: There are a number of options (atleast 3 that I know of):
- Code comment in the gedit-plugins package available in the universe package:
https://launchpad.net/ubuntu/+source/gedit-plugins
(has comment and uncomment)- Zen Coding Plugin: It lets you keep your custom shortcuts too. Available on github:
https://github.com/mikecrittenden/zen-coding-gedit
(has toggle comment)
(my personal favorite)- Line Tools Plugin: found in the Gedit/Gmate package of Ubuntu-on rails ppa
https://launchpad.net/~ubuntu-on-rails/+archive/ppa
as well as on Github
https://github.com/gmate/gmate
The Zen Coding Project is also now a part of this plugin
Last edited by bhavin137; November 25th, 2012 at 08:56 PM.
Bookmarks