Game Development Community

dev|Pro Game Development Curriculum

JEdit tips.

by Cameron Aycock · 06/22/2004 (2:03 pm) · 4 comments

I wrote a .Plan with the following tips in it, and Melv May sugested I may want to submit it as a very small resource, so that more people might see them. Feels kinda silly, but, who am I to argue with Melv? I have added some small additions to get more use out of it. Here goes.

I spent a great deal of time today throughly looking at all "normal" features in JEdit, and how I can use them to my advantage. Here are some tips that have proven to be invaluable to anyone using JEdit:

1. You can modify the right-click context menu in the buffer. (Right click -> customize) I used this ability to add the "Search Current Selection In Project" option from the TIDE Browse plug-in. (you MUST remove any operators in the project viewer extension eg: "C++" for this to work.. otherwise it will error out). This basically game me a simple "Goto Definition" popup menu! WOOT!

2. I got bugged by the damn result popping up, so I docked the hypersearchwindow to the right (with TIDE Browse) and I can easily switch without losing my place!

3. The REAL power lies in JEdit

About the author

Recent Blogs

• Plan for Cameron Aycock

#1
06/22/2004 (10:21 pm)
Nice tips!
Maybe you could post your abbreviation files? Never really used those, same goes for Macros... heck, JEdit is soooo powerful, you learn something new every day :)
Just thought I'd add the links here, too:
www.jedit.org
torqueide.sourceforge.net/
#2
06/23/2004 (5:36 am)
BufferTabs is also a nice plug to use.
I also find folding all can help on a large file.

Also can you explain #1 a little more, I can't get this to work? I always get a "The specified search file set contains no files."
#3
06/23/2004 (5:50 am)
That's exactly what #1 addresses: you have to edit the settings of the ProjectViewer plugin to not include file extensions with operators and other special characters such as "c++" - to make this more clear, I have added a screenshot to the FAQ:
torqueide.sourceforge.net/docs/faq.html
So, the "c++" in there would have to be removed (never seen that extension anyways, its either .cc or .cpp, but that's in the ProjectViewer plugin settings by default unfortunately)
#4
07/13/2004 (3:03 am)
A nice thing you could do is create a macro that inserts some kinda text. For example I moved from Homesite to jEdit for my php/html coding and got used to pressing Ctr+Shft+B to insert a
(break tag) in Homesite. In jEdit I created a macro to insert such a tag and then in Global Options bound the same key combination.

I also now have a macro with shortcut key for inserting some common coments like a commented "header" block, and some other comment styles I use in torque script.

Never looked at the abbreviation thing before, thats pretty kewl :) and I've been looking for that code completion thing, gues not long enough.

A kewl plugin you should try is TaskList, it creates a list according to keywords appearing in your comments. For example

// fixme: yadayadayadayada

... will cause tasklist to add the line number and text where "fixme:" appears in the list. All you need to do then is go through this list of fixme, todo, note, etc. and you don't have to search the text manually for fixmes. You can also define keywords in the plugin's config.

Another nice plugin is the IRC plugin .. with this I can communicate with the rest of the development team without leaving the editor.

Gues I'll find some more nifty uses for jEdit as time goed by, been using it for about 3 days now =) .. plugins I love most is the Project View, Tide Browser, Buffer Tabs, XMLInsert, XInsert, IRC, and TaskList plugins