Nfield ODIN Extension
A VS Code extension for Nfield ODIN script syntax highlighting and tools.
About
This extension was originally created by PhoenixHuang2020 and is now maintained by Jimmy Liu with the original author's permission.
Authorization
The original author PhoenixHuang2020 has granted Jimmy Liu the authorization to continue maintaining and modifying this extension.
Features
Syntax Highlighting
- Keywords (*QUESTION, *CODE, *VAR, *ID, etc.)
- Question references (Q123, Q{customId})
- Option codes (1:, 2:, etc.)
- Strings
- Comments (**)
Outline View
- Show questions with var name or dimvar name
- Show different icons for dummy and non-dummy questions
- Show subroutines
- Show option codes and lists
Navigation
- Hover: Show question details including text and options
- Go to Definition (F12): Jump to question definition
Keyboard Shortcuts
Ctrl+1: Add line numbers to selected text
Ctrl+2: Wrap selected text with <blueb> tag
Question References
- Support
Q数字 format (e.g., Q1, Q123)
- Support
Q{IDNAME} format using *ID attribute (e.g., Q{satisfaction})
Usage
Question Definition
*QUESTION 1 *CODE L5 *VAR "q1" *ID "satisfaction"
您对本次服务满意吗?
1:非常满意
2:满意
3:一般
4:不满意
5:非常不满意
Question References
Q1
Q{satisfaction}
Changelog
See CHANGELOG.md for detailed changes.
| |