flat assembler
Message board for the users of flat assembler.

Index > IDE Development > Fresh - tips and tricks.

Author
Thread Post new topic Reply to topic
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 06 Nov 2010, 07:45
There are several features of Fresh, that make programming very easy and fast. Some of them are a little bit hidden: Wink

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. Smile

Regards
Post 06 Nov 2010, 07:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
baldr



Joined: 19 Mar 2008
Posts: 1651
baldr 06 Nov 2010, 09:30
JohnFound,

fasm preprocessor is so powerful that you can't assume almost anything. Does Fresh tokenize source before analyzing?
Post 06 Nov 2010, 09:30
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 06 Nov 2010, 11:32
baldr wrote:
JohnFound,

fasm preprocessor is so powerful that you can't assume almost anything. Does Fresh tokenize source before analyzing?


Actually Fresh does not analyze the source code at all. As long as Fresh is FASM, it simply compiles the source and collects the information directly.
Post 06 Nov 2010, 11:32
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.