docs: Add terminal.detect_venv; only detect venv with bin subdir (#17437)
- Add docs for terminal.detect_venv - Only detect venv with bin subdir
This commit is contained in:
parent
94b6d06a72
commit
d6ab569e42
3 changed files with 46 additions and 1 deletions
|
@ -1278,6 +1278,12 @@ List of `integer` column numbers
|
|||
"blinking": "terminal_controlled",
|
||||
"copy_on_select": false,
|
||||
"dock": "bottom",
|
||||
"detect_venv": {
|
||||
"on": {
|
||||
"directories": [".env", "env", ".venv", "venv"],
|
||||
"activate_script": "default"
|
||||
}
|
||||
}
|
||||
"env": {},
|
||||
"font_family": null,
|
||||
"font_features": null,
|
||||
|
@ -1570,6 +1576,39 @@ See Buffer Font Features
|
|||
}
|
||||
```
|
||||
|
||||
## Terminal: Detect Virtual Environments {#terminal-detect_venv}
|
||||
|
||||
- Description: Activate the [Python Virtual Environment](https://docs.python.org/3/library/venv.html), if one is found, in the terminal's working directory (as resolved by the working_directory and automatically activating the virtual environemtn
|
||||
- Setting: `detect_venv`
|
||||
- Default:
|
||||
|
||||
```json
|
||||
{
|
||||
"terminal":
|
||||
"detect_venv": {
|
||||
"on": {
|
||||
// Default directories to search for virtual environments, relative
|
||||
// to the current working directory. We recommend overriding this
|
||||
// in your project's settings, rather than globally.
|
||||
"directories": [".venv", "venv"],
|
||||
// Can also be `csh`, `fish`, and `nushell`
|
||||
"activate_script": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Disable with:
|
||||
|
||||
```json
|
||||
{
|
||||
"terminal":
|
||||
"detect_venv": "off"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Terminal: Toolbar
|
||||
|
||||
- Description: Whether or not to show various elements in the terminal toolbar. It only affects terminals placed in the editor pane.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue