Common Workflows¶
Step-by-step guides for typical development tasks.
Note: The Tk UI has most features described below implemented (Smart Insert, Variables Window, Execution Stack, Renumber). The Settings dialog for configuring these features is planned but not yet implemented - see Settings for details.
1. Write New Program¶
- Press {{kbd:file_new:tk}} (New)
- Type:
10 PRINT "START" - Press Enter
- Type:
20 END - Press {{kbd:run_program:tk}} (Run)
- Check output
- Press {{kbd:file_save:tk}} (Save)
2. Expand Existing Program¶
You have working code and need to add more:
- Find where to insert new code
- Press {{kbd:smart_insert:tk}} (Smart Insert) to insert blank line
- Type your new code
- Press {{kbd:run_program:tk}} (Run) to test
- Press {{kbd:file_save:tk}} (Save)
3. Debug with Breakpoints¶
- Click line number gutter to set breakpoint (● appears)
- Press {{kbd:toggle_variables:tk}} to open Variables window
- Press {{kbd:run_program:tk}} (Run)
- Program stops at breakpoint
- Check variable values
- Use Step Statement (Run menu) to step through code
- Variables update in real-time
- Use Continue (Run menu) to continue
4. Fix Syntax Errors¶
- Look for red ? in line number gutter
- Read error in output pane
- Fix the syntax
- ? disappears automatically (100ms delay)
- Press {{kbd:run_program:tk}} (Run) to test
5. Renumber Before Sharing¶
Your development version has messy line numbers. Make it clean:
- Press {{kbd:renumber:tk}} (Renumber)
- Set Start=10, Increment=10
- Click "Renumber"
- All GOTO/GOSUB references automatically updated!