Skip to main content
Available shortcuts and Command Palette commands in the Sonamu Extension.

Keyboard Shortcuts

ShortcutActionDescription
F12Go to DefinitionJump to Naite key’s definition location (Naite.t())
Shift+F12Go to ReferencesDisplay all reference locations for Naite key (Naite.get(), Naite.del())
Cmd+ClickGo to Definition/ReferencesJump to definition or references based on VS Code settings
Cmd+TWorkspace Symbol SearchSearch for Naite keys in workspace

Autocomplete

TriggerActionDescription
Naite.t("Key autocompleteDisplay all Naite key list
Naite.get("Key autocompleteDisplay all Naite key list
Naite.del("Key autocompleteDisplay all Naite key list
When autocomplete triggers, navigate with arrow keys and select with Enter or Tab.
Naite Key Autocomplete (Naite.t)
Naite Key Autocomplete (Naite.del)
Naite Key Autocomplete (Naite.get)

Command Palette Commands

Use the following commands from the Command Palette (Cmd+Shift+P).

Sonamu: Open Naite Trace Viewer

Opens the Naite Trace Viewer. Check values recorded with Naite.t() during test execution in real-time.
Cmd+Shift+P → "Sonamu: Open Naite Trace Viewer"

Sonamu: Rescan Naite Keys

Rescans all Naite keys in the workspace. Useful when the key list isn’t updated or autocomplete isn’t working.
Cmd+Shift+P → "Sonamu: Rescan Naite Keys"
Running this displays the number of found keys as a notification.

Context Menu

Right-clicking on a Naite key string displays the following menu:
  • Go to Definition: Jump to definition location
  • Go to References: Display reference location list
  • Peek Definition: Preview definition inline
  • Peek References: Preview references inline
Context Menu

Changing Shortcuts in Settings

You can customize shortcuts in VS Code settings:
  1. Open Command Palette (Cmd+Shift+P)
  2. Run “Preferences: Open Keyboard Shortcuts”
  3. Search “Sonamu” to find related commands
  4. Change to desired shortcuts
Shortcut Settings

Common Workflows

Test Writing Workflow

  1. Type Naite.t(" for key autocomplete
  2. Run tests
  3. Trace Viewer opens automatically
  4. Click trace to check code location
  5. Verify values with Naite.get() as needed

Debugging Workflow

  1. Add Naite.t() to problematic section
  2. Run tests
  3. Check recorded values in Trace Viewer
  4. Jump to location with F12
  5. Fix code and rerun

Key Cleanup Workflow

  1. Open Workspace Symbol Search with Cmd+T
  2. Search for key to clean up
  3. Check all references with Shift+F12
  4. Remove unused keys