Home » Community » Newbie corner » Some Questions
Some Questions [message #59119] |
Sat, 05 November 2022 21:26  |
199t8
Messages: 3 Registered: November 2022
|
Junior Member |
|
|
What is the difference between a main and non-main package and how do I make a main one?
Is there an easier way to format code than Edit > Advanced > Format, such as through a keybind?
What does this forum setting do?
[Updated on: Mon, 07 November 2022 10:02] Report message to a moderator
|
|
|
Re: Some Questions [message #59123 is a reply to message #59119] |
Sun, 06 November 2022 20:21   |
 |
Klugier
Messages: 1099 Registered: September 2012 Location: Poland, Kraków
|
Senior Contributor |
|
|
Hello 199t8,
Welcome on our forum! We appreciate that you decided to join us.
In short main package is a package with main function. All other packages (non-main) are playing a support role to the main package. For example main package is your application let's call it HomeBudget and supportive package (non-main) is CtrlLib which contains all UI code.
I highly suggest reading following articles:
- Getting Started
- GUI Tutorial
Above articles should give you basics understanding of U++ concepts. If you are looking for more, you can study all tutorials.
The link you post is broken. Please attached screenshot using our forum infrastructure.
Is there an easier way to format code than Edit > Advanced > Format, such as through a keybind?
You can already do it by opening TheIDE key configuration menu "Setup > Keyboard shotcutrs.." and then finding "Format code in Editor". Here is the screenshot:

Klugier
U++ - one framework to rule them all.
[Updated on: Sun, 06 November 2022 20:41] Report message to a moderator
|
|
|
Re: Some Questions [message #59131 is a reply to message #59123] |
Mon, 07 November 2022 10:21  |
199t8
Messages: 3 Registered: November 2022
|
Junior Member |
|
|
Thanks!
Since I began with an empty package, I needed to add a configuration flag (whatever that is) in addition to a main function for it to register as a main package.
I've fixed the broken link. It was originally that way because the forum wouldn't let me add images on my first post.
Also, is there a to make the IDE show which files are unsaved? Or is this irrelevant since the editor aggressively autosaves? And how do modules and settings sync if possible work with version control (Git)?
[Updated on: Mon, 07 November 2022 11:58] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Apr 25 15:14:31 CEST 2025
Total time taken to generate the page: 0.02548 seconds
|