Keybinding
By default, no key binding is provided (to avoid conflict).
To map key to the different feature, simply add the following to your user .sublime-keymap file, and modify the key to your liking:
{
"keys": ["f10"], "command": "verilog_type",
"context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["ctrl+f10"], "command": "verilog_module_inst",
"context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["ctrl+shift+f10"], "command": "verilog_toggle_dot_star",
"context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog meta.module.inst"}
]
},
{
"keys": ["ctrl+shift+a"], "command": "verilog_align",
"context":
[
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["alt+shift+a"], "command": "verilog_align", "args":{"cmd":"reindent"},
"context":
[
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["ctrl+f12"], "command": "verilog_goto_driver",
"context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["shift+f12"], "command": "verilog_goto_declaration",
"context":
[
{ "key": "num_selections", "operator": "equal", "operand": 1 },
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
// Begin/End
{
"keys": ["ctrl+'"],
"command": "insert_snippet", "args": {"contents": "begin\n\t$0\nend"},
"context": [{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }]
},
{
"keys": ["ctrl+'"],
"command": "run_macro_file",
"args": {"file": "Packages/SystemVerilog/beginend.sublime-macro"},
"context": [{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }]
},
{
"keys": ["ctrl+m"], "command": "verilog_goto_block_boundary", "args":{"cmd":"move"},
"context":
[
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
},
{
"keys": ["ctrl+shift+m"], "command": "verilog_goto_block_boundary", "args":{"cmd":"select"},
"context":
[
{ "key": "selector", "operator": "equal", "operand": "source.systemverilog"}
]
}