Skip to content

Commit

Permalink
Merge Main > Live (#480)
Browse files Browse the repository at this point in the history
* Update dynamic-profiles.md (#438)

* Update dynamic-profiles.md

Create section for dynamic profile for `Developer Powershell for VS 2019`

* Update dynamic-profiles.md

Update name and remove `startingDirectory`

* Update dynamic-profiles.md

Explain a little better

* Update VS version info in 3rd party (#462)

* Update custom prompt tutorial w latest OMP steps (#467)

* Add themes link

* Bulk fix - Removing .localizationpriority (#469)

* Testing image (#474)

* Update new-tab-same-directory.md

* Update new-tab-same-directory.md

* Include note on how to save the directory of a pane (#473)

* Add decimal value note for pane size

Resolves #276

* Remove VS PowerShell and CMD for 3rd party 

..these are now officially dynamic profiles.. so no longer need to be added as 3rd party as of Terminal v. 1.12. :)

* Add faq for psreadline

* Fix formatting

* Remove space before code block

* Remove code block

* Fix link

Co-authored-by: Shubham Gogna <36936863+shgogna@users.noreply.github.com>
Co-authored-by: Alma Jenks <v-alje@microsoft.com>
Co-authored-by: Jason Howell <5067358+JasonWHowell@users.noreply.github.com>
Co-authored-by: Schuyler Rosefield <Rosefield@users.noreply.github.com>
  • Loading branch information
5 people authored Jan 8, 2022
1 parent 57ed446 commit b00c36e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 45 deletions.
2 changes: 1 addition & 1 deletion TerminalDocs/command-line-arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Below is the full list of supported commands and options for the `wt` command li
| `split-pane`, `sp` | `--startingDirectory, -d starting-directory` | Creates a new split window pane based on the assigned starting directory path. If this parameter is not assigned, the default starting directory will be used. | Directory path |
| `split-pane`, `sp` | `--title` | Creates a new split window pane with the assigned title. | Text to use as the tab title |
| `split-pane`, `sp` | `--tabColor` | Creates a new split window pane with the assigned tab color. | Hex color as #RGB or #RRGGBB |
| `split-pane`, `sp` | `--size, -s size`| Creates a new split window pane with the assigned size. | Float that specifies the portion of the parent pane to use |
| `split-pane`, `sp` | `--size, -s size`| Creates a new split window pane with the assigned size. | Float that specifies the portion of the parent pane to use represented by a decimal. For example, `.4` to represent 40% of the parent pane. |
| `split-pane`, `sp` | `commandline` | Creates a new split window pane based on the assigned command line. | Executable with optional commands |
| `split-pane`, `sp` | `--duplicate, -D` | Creates a new split window pane that is a duplicate of the current pane. | N/A. No additional values to assign. |

Expand Down
40 changes: 1 addition & 39 deletions TerminalDocs/dynamic-profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Windows Terminal Dynamic Profiles
description: Learn about dynamic profiles in Windows Terminal.
author: cinnamon-msft
ms.author: cinnamon
ms.date: 08/30/2021
ms.date: 01/06/2022
ms.topic: conceptual
---

Expand Down Expand Up @@ -137,41 +137,3 @@ Assuming that you've installed MSYS2 into `C:\\msys64`:
```

For more details, see the Terminals section of the [MSYS2 documentation](https://www.msys2.org/docs/terminals/#windows-terminal).

### Developer Command Prompt for Visual Studio

Assuming that you've installed [Visual Studio](/visualstudio/install/install-visual-studio):

```json
{
"name": "Developer Command Prompt",
"commandline": "cmd.exe /k \"C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/Tools/VsDevCmd.bat\"",
"startingDirectory": "%USERPROFILE%"
}
```

> [!NOTE]
> Visual Studio’s “Developer Powershell” and “Developer Command Prompt” include shell environment variables and tools settings that would not be available in the default Command Prompt or Powershell instance.
### Developer Powershell for Visual Studio

Assuming that you've installed [Visual Studio](/visualstudio/install/install-visual-studio):

```json
{
"name": "Developer Powershell",
"commandline": "powershell.exe -noe -c \"&{Import-Module \"\"\"C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/Tools/Microsoft.VisualStudio.DevShell.dll\"\"\"; Enter-VsDevShell 994a9d58}\""
}
```

To find the `commandline` path to use in the Windows Terminal settings for your Visual Studio instance:

1. Find the shortcut to `Developer Powershell for VS 2019` in the start menu
2. Right-click and select `Open File Location`
3. Right-click and select `Properties` on the shortcut
4. Inspect the `Target` field. It will be some value like `C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -noe -c "&{Import-Module """C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"""; Enter-VsDevShell 994a9d58}"`
5. Use `Target` field value to update the file path for `Import-Module` in the profile `commandline`
6. Use `Target` field value to update the unique instance ID used with the `Enter-VsDevShell` command in the profile `commandline`

> [!NOTE]
> Visual Studio’s “Developer Powershell” and “Developer Command Prompt” include shell environment variables and tools settings that would not be available in the default Command Prompt or Powershell instance.
10 changes: 5 additions & 5 deletions TerminalDocs/faq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ metadata:
title: Windows Terminal FAQ
description: Frequently asked questions about Windows Terminal, such as how to start terminal in administrator mode, how to save a terminal session, and more.
ms.topic: troubleshooting
ms.date: 12/09/2021
ms.date: 01/06/2022
ms.author: mattwoj
author: mattwojo
manager: jken
Expand Down Expand Up @@ -96,14 +96,14 @@ sections:
![Screenshot of filing an issue in terminal repo](./images/file-issue.png)
- question: How can I customize PowerShell prompt colors using PSReadLine?
answer: |
The PSReadLine module is responsible for setting the colors and behavior of your PowerShell command line. You can set colors for specific attributes of your PowerShell prompt by using the [Set-PSReadLineOption, see Example 4: Set multiple color options](/powershell/module/psreadline/set-psreadlineoption#example-4--set-multiple-color-options).
# - question: Is there a way to sync your terminal settings across devices?
# answer: |
# TBD

# - question: Can we expect a status bar on the bottom of Windows Terminal?
# answer: |
# TBD

# - question: TBD
# answer: |
# TBD

0 comments on commit b00c36e

Please sign in to comment.