There are several features of Fresh, that make programming very easy and fast. Some of them are a little bit hidden:
The first group is that relies on compilation results. Even compilation with errors at assembling stage will gives you some of the features:
1.
Goto definition: place the caret near some label name and press ctrl+D. Also you can select "Goto definition" from popup menu of the editor. You need successful last compilation in order to use this function.
2.
Goto address: Press ctrl+G and enter some address. Fresh will bring you to the respective source line. It is very useful for tracking exceptions. You need successful last compilation in order to use this function.
3.
Code completion - press ctrl+Space to open code completion list. It will track what you type and you can press "Enter" or "." in any time to complete the word. The list contains all labels and constants defined in your program (and all includes of course) so it is automatically adjusted for your current needs.
Code completion list works even if the last compilation was not successful. Only errors in preprocessing stage can make this feature not working.
Following features does not depend on compilation:
4.
Open file at cursor - put the caret on the quoted filename and press Ctrl+Enter to open the file. If the file does not exists - new file will be created.
5.
Include - Ctrl+Alt+I, or from popup menu of the source editor. Generate include directives for every file selected in file open dialog.
6.
Drag and drops - you can drop one or more files on several places inside Fresh:
- At the source editor window: this will create line(s) with include directive(s) for the given file(s)
- At the tab bar - the file(s) will be open in separate tabs in the editor.
- Inside the project manager - the files get added to the project.
Of course Fresh have even more useful features, so this article will be continued.
Regards