Overview
Don't construct a query without editing help!
Magnus provides Rich Text Editor to assist in developing queries and scripts.
Available in BigQuery Task and Script Task, Rich Editor elevates coding by offering features developers cannot be without.
Reference the line number of specific code, easily read through query/script with color coded key words, start typing and get hints to auto complete, highlight words to bracket match and position, and block selections.
Don't settle for small text editor size re-size the editor or better yet go full screen with Full Window Mode.
Rich editor is a text editor that implements more advanced editing function, provides many features and add-ons
Features are:
- Line numbering
- Context Sensitive Syntax Coloring
- Auto Completion with Hints
- Bracket Matching
- Embracing Selection in Brackets
- Multiline and multi-position Cursor and Selection
- Block Selection
- Full Window Mode
- Multiline Comments
- Active line
- Preserve Auto Formatting (keywords capitalization)
Rich editor is used in the following Tasks
Special instructions to keep in mind:
- Auto completion is supported only for the following. Auto completion is listed by pressing Ctrl+Space.
- BigQuery task query (standard/legacy)
- BigQuery task UDF
- Script task for JavaScript
- Commenting/Uncommenting:
- Can be applied to one line by putting the mouse cursor to any position in that line and press Ctrl+/
- Can be applied to multiline by highlighting all lines and press Ctrl+/
- Full screen:
- Windows: Press F11 or click , press Esc to exit the full screen mode
- Mac: click , press Esc to exit the full screen mode
- Embracing selection in Brackets (Auto close brackets):
- Highlight the word, line, multiline then use one of the supported matching bracket:
- "
- <
- '
- [
- {
- (
- `
- Highlight the word, line, multiline then use one of the supported matching bracket:
Features Details
Languages Support
-
- BigQuery Legacy and Standard SQL dialects
- JavaScript (UDF)
- Go (GoBQ)
Line numbering
Query editor contains line numbers for each line of text |
Context Sensitive Syntax Coloring
Keywords are color coded |
Auto Completion with Hints
Keyword autocomplete
|
Bracket Matching
Words can be embraced in brackets such as (), {}, [], <>, “”, ‘’, and ``
|
Multiline Cursor and Selection
Words can be embraced in brackets such as (), {}, [], <>, “”, ‘’, and ``
|
Block Selection
|
Full Window Mode
Query text area can be set to full window mode by
|
Multiline Comments
To add multiline comments follow steps for Multiline Cursor and Selection (7) above and then type comments
Multiline
See Multiline Cursor and Selection and Multiline Comments above
Preserve Formatting
Auto Formatting (keywords capitalization) can be preserved via CTRL + SHIFT + F
If user will Copy/Paste your query from BigQuery Editor to somewhere else - you will lose keywords capitalization that is part of Auto-Formatting feature.
To preserve capitalization first – use CTRL+SHIFT+F
IntelliSense for Parameters
Rich editor supports smart autocomplete/hint menu detection for parameters.
In order for the user to have access to that menu, the user needs to type < first then click Ctrl+Space, all parameters (built-in and custom) within given workflow will be displayed at IntelliSense menu.
For example: Assuming workflow has following parameters
In BigQuery Task, type first < then click Ctrl+Space - to get IntelliSense for Parameters as below
The list of parameters will appear, custom parameters will have different colors from built-in parameters, and each parameter will have a tooltip that has info about it, like type, value, schema (if record parameter)