Skip to content

Commit e2b8773

Browse files
bors[bot]syvbkjeremy
authored
Merge #8629 #8657
8629: Allow pressing | to surround closure arguments in VSCode r=matklad a=Smittyvb This makes pressing <kbd>|</kbd> while some text is selected surround that text with pipes. This is useful when writing closures. In this demo, I press <kbd>|</kbd> to easily surround some text (`predicate`) with pipe characters to create a closure. Before, this would have replaced `predicate` with just `|`. ![](https://user-images.githubusercontent.com/10530973/115778847-3c257e00-a385-11eb-8c80-e0db970747db.gif) (I am getting failures when I do `cargo test` even on `master` locally (due to #8585 I think), but GH Actions is fine with this) 8657: npm update r=matklad a=kjeremy Co-authored-by: Smittyvb <me@smitop.com> Co-authored-by: Jeremy Kolb <kjeremy@gmail.com>
3 parents 86b5084 + c38e3e9 + 1c92765 commit e2b8773

File tree

2 files changed

+486
-404
lines changed

2 files changed

+486
-404
lines changed

editors/code/language-configuration.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
["(", ")"],
2424
["<", ">"],
2525
["\"", "\""],
26-
["'", "'"]
26+
["'", "'"],
27+
["|", "|"]
2728
],
2829
"indentationRules": {
2930
"increaseIndentPattern": "^.*\\{[^}\"']*$|^.*\\([^\\)\"']*$",

0 commit comments

Comments
 (0)