Skip to content

Commit ef34ee5

Browse files
author
steveluc
committed
Added bindings and command menu entry for typescript_paste_and_format.
Bindings are ctrl+v and command+v. TODO: split out some bindings for Mac, Windows, Linux.
1 parent 731126f commit ef34ee5

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Default.sublime-keymap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,5 +163,20 @@
163163
"context": [
164164
{ "key": "selector", "operator": "equal", "operand": "source.ts" }
165165
]
166+
},
167+
{
168+
"keys": [ "super+v" ],
169+
"command": "typescript_paste_and_format",
170+
"context": [
171+
{ "key": "selector", "operator": "equal", "operand": "source.ts" }
172+
]
173+
},
174+
{
175+
"keys": [ "ctrl+v" ],
176+
"command": "typescript_paste_and_format",
177+
"context": [
178+
{ "key": "selector", "operator": "equal", "operand": "source.ts" }
179+
]
166180
}
181+
167182
]

TypeScript.sublime-commands

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
{ "caption" : "TypeScript: FormatSelection", "command": "typescript_format_selection" },
77
{ "caption" : "TypeScript: FormatDocument", "command": "typescript_format_document" },
88
{ "caption" : "TypeScript: FindReferences", "command": "typescript_find_references" },
9-
{ "caption" : "TypeScript: Rename", "command": "typescript_rename" }
9+
{ "caption" : "TypeScript: Rename", "command": "typescript_rename" },
10+
{ "caption" : "TypeScript: PasteAndFormat", "command": "typescript_paste_and_format" }
1011
]
1112

0 commit comments

Comments
 (0)