Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » theide: Complete abbreviations
theide: Complete abbreviations [message #19477] Sat, 06 December 2008 13:40 Go to next message
mirek is currently offline  mirek
Messages: 11991
Registered: November 2005
Ultimate Member
type

ieb

press Ctrl+. and it expands to:

if() {
}
else {
}

(of course, use Setup to create your own abbreviations).

Mirek
Re: theide: Complete abbreviations [message #19479 is a reply to message #19477] Sat, 06 December 2008 14:47 Go to previous messageGo to next message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
oh how cool... it's the simple things that make the development process much smoother.
Re: theide: Complete abbreviations [message #20007 is a reply to message #19477] Mon, 09 February 2009 11:07 Go to previous messageGo to next message
slashmais is currently offline  slashmais
Messages: 20
Registered: January 2007
Location: south africa
Promising Member
Very useful!
Now to make it Ultimate (ly!) useful is to add the ability to pass parameters to the expander, e.g.:

ieb(index == 5)


which should then expand to:

if (index == 5)
{
}
else
{
}


Maybe use $1,$2, ... as parameter position holders.
I could implement this if you can point me to where the source for it is.

[Updated on: Mon, 09 February 2009 11:11]

Report message to a moderator

Re: theide: Complete abbreviations [message #20194 is a reply to message #20007] Tue, 24 February 2009 14:00 Go to previous messageGo to next message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Hello Mirek! Can you correct this bugs in ide/Abbr.cpp? corrected code is:

void AbbreviationsDlg::Add()
{
	String s;
	
	if (EditText(s, "New abbreviation", "Keyword", CharFilterAlpha))
	{
		abbr.Add(s, Null);
		Finish(s);
	}
}


and

void AbbreviationsDlg::Edit()
{
	if(!abbr.IsCursor())
		return;
	String s = abbr.GetKey();
	
	if (EditText(s, "Edit keyword", "Keyword", CharFilterAlpha))
	{
		abbr.Set(0, s);
		Finish(s);
	}
}


I propose to change abbreviation mechanism:
1. Add parametrization, first propose is to add as <@"parameter description">
2. Change char @ with <@>
3. Edit and save abbreviations as tree (group by folders).
4. Save abbreviation file as xml file
5. Save abbreviation in more files and user defined locations. By default will be <installation folder>\abbrs.xml, but in file <installation folder>\ide.abbrs will be saved addresses of abbreviations files.
6. Set Splitter from abbreviation tree and code editor.
7. Change from "Abbreviation" to "Text template".
I can do this changes on evening and I will post for appreciate.

Anybody is interesting in this changes or have other proposes?
Re: theide: Complete abbreviations [message #32082 is a reply to message #20194] Wed, 20 April 2011 22:00 Go to previous message
Lance is currently offline  Lance
Messages: 347
Registered: March 2007
Senior Member
I found this post by searching the forum.

Now I know how to use abbreviations to save some key strokes. Thanks.
Previous Topic: Issue with TheIde
Next Topic: Pb with code completion in latests versions
Goto Forum:
  


Current Time: Sun Aug 18 15:19:15 CEST 2019

Total time taken to generate the page: 0.00785 seconds