Skip to content

Commit 7f646a8

Browse files
committed
d adding explanation of VS Code integration
1 parent a7d50dc commit 7f646a8

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

KeyboardShortcutKatas/MultiCursor.md

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
# Column Select
1+
# Basic
22

3-
## Adding
3+
## Column Select
44

5-
**Hint:** alt-drag to select a column
5+
### Adding
6+
7+
**HINT:** alt-drag to select a column
68

79
transform the start: `1 => #1)`
810

@@ -14,7 +16,7 @@ transform the start: `1 => #1)`
1416
6 grape
1517
7 dragonfruit
1618

17-
## Deleting
19+
### Deleting
1820

1921
delete the j and the two characters that follow
2022

@@ -26,11 +28,37 @@ delete the j and the two characters that follow
2628
6 grj%9ape
2729
7 drjlKagonfruit
2830

31+
# Advanced
32+
33+
## Setup Open w/ VS Code
34+
35+
unfortunately, multi-cursor support is pretty basic in Visual Studio.
36+
Our suggestion is to jump to VS Code whenever you have a more
37+
advanced multi-cursor use-case.
38+
Here's how to set up Visual Studio to this easily.
39+
40+
1. Go to Tools->External Tools...
41+
2. Click "Add"
42+
3. Title: `&1 vscode`
43+
4. Command: `"your\path\to\vscode\code.exe"`
44+
5. Arguments: `. -g $(ItemPath):$(CurLine):$(CurCol)`
45+
6. Initial directory: `$(SolutionDir)`
46+
7. Click "OK"
47+
48+
In the end, it should look something like this:
49+
![screenshot](external_tools.png)
50+
51+
After this, pressing the following key sequence (one at a time) `alt t 1`
52+
will open the current document in VS code at the current cursor position.
2953

3054
## Word Select
3155

3256
transform `1 apple => private string apple = "apple";`
3357

58+
**HINT:** alt-shift-drag selects a column in VS Code.
59+
**HINT:** ctrl-shift-➔ selects a word.
60+
**HINT:** You can copy/paste columns of words.
61+
3462
1 apple
3563
2 orange
3664
3 pear
13.6 KB
Loading

0 commit comments

Comments
 (0)