VScode에서도 Powershell에서 명령 내역 검색을 원합니다.
3677 단어 PowerShellVSCode
세 줄로


3.

keybindings.json
에 설정을 쓰면 좋다 .설정은 이쪽
이 설정을 만들거나 추가합니다. stackoverflow 감사합니다.
keybindings.json// 既定値を上書きするには、このファイル内にキー バインドを挿入しますauto[]
[
{
"key": "ctrl+r",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": { "text": "\u0012" }
}
]
이제 명령 기록을 검색 할 수 있습니다.


그건 그렇고, bash도이 설정에서 똑같이 할 수있었습니다.
운영 환경❯ $PSVersionTable
Name Value
---- -----
PSVersion 7.1.0-preview.3
PSEdition Core
GitCommitId 7.1.0-preview.3
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
❯ Get-Module psreadline
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.1.0 beta2 PSReadLine
Visual Studio Code 1.46.1
ms-vscode.powershell-preview
// 既定値を上書きするには、このファイル内にキー バインドを挿入しますauto[]
[
{
"key": "ctrl+r",
"command": "workbench.action.terminal.sendSequence",
"when": "terminalFocus",
"args": { "text": "\u0012" }
}
]
❯ $PSVersionTable
Name Value
---- -----
PSVersion 7.1.0-preview.3
PSEdition Core
GitCommitId 7.1.0-preview.3
OS Microsoft Windows 10.0.19041
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
❯ Get-Module psreadline
ModuleType Version PreRelease Name ExportedCommands
---------- ------- ---------- ---- ----------------
Script 2.1.0 beta2 PSReadLine
Visual Studio Code 1.46.1
ms-vscode.powershell-preview
Reference
이 문제에 관하여(VScode에서도 Powershell에서 명령 내역 검색을 원합니다.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/SilkyFowl/items/712f19366ee1ef9dbdfd텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)