Skip to content

Commit cf0bc9d

Browse files
authored
Update auto replies notes
The default switched to off See microsoft/vscode#142341
1 parent d28371d commit cf0bc9d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

release-notes/v1_64.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,19 @@ Extensions power almost all language features, including built-in features like
158158

159159
### Automatic replies
160160

161-
The terminal is now able to automatically reply when a specific sequence of characters is received. A good example of where this is useful is the Windows batch script message `Terminate batch job (Y/N)?` after hitting `Ctrl+C` when running a batch script. This typically just ends up causing problems for the user and so a default automatic reply was added. The terminal will now automatically reply with `Y` and enter (`\r`), which makes `Ctrl+C` in Windows feel much better.
161+
The terminal now features an opt-in feature to automatically reply when a specific sequence of characters is received. A good example of where this is useful is the Windows batch script message `Terminate batch job (Y/N)?` after hitting `Ctrl+C` when running a batch script. To get the terminal to automatically reply with `Y` and enter (`\r`) on `Ctrl+C` in Windows add the following setting:
162+
163+
```json
164+
"terminal.integrated.autoReplies": {
165+
"Terminate batch job (Y/N)?": "Y\r"
166+
}
167+
```
162168

163169
![Pressing Ctrl+C will immediately reply to the question and return to the prompt](images/1_64/terminal-auto-reply.gif)
164170

165171
_Theme: [Sapphire](https://marketplace.visualstudio.com/items?itemName=Tyriar.theme-sapphire)_
166172

167-
The feature was made configurable with the `terminal.integrated.autoReplies` setting, so you can set up custom replies for other things, but be careful when doing this, as you are sending text to the process automatically. For example, you could use it to automatically update Oh My Zsh when prompted:
173+
You can set up custom replies for other things, but be careful when doing this, as you are sending text to the process automatically. For example, you could use it to automatically update Oh My Zsh when prompted:
168174

169175
```json
170176
"terminal.integrated.autoReplies": {

0 commit comments

Comments
 (0)