backwards scrolling in the terminal, how far? - see terminal integrated scrollback - aka: how many lines back in the terminal can you scroll?
- highlight the code block and hit Shift + Alt + A This brackets the code block with "<#" at the beginning followed by "#>" at the end. Doing the same thing again toggles.
- Ctl + k, Ctl + c. This inserts a "#" in front of each line. Ctl + k, Ctl + u to uncomment same.
F8 button stops working – this problem started after I ran Visual Studio Code as a different user. When I went back to my normal user, F8 no longer ran selected code. I went back to VSC as that other user, F8 still worked fine. When I went back to my normal user again, then it worked OK. F8 does the same thing as going to the top menu → Terminal → Run Selected Text.
how far back can you scroll in the terminal? - see terminal integrated scrollback - aka: how many lines back in the terminal can you scroll?
integrated console - From the Command Palette (Ctrl+Shift+P), use the View: Toggle Integrated Terminal command.
lines you can go back in terminal - see terminal integrated scrollback - aka: how many lines back in the terminal can you scroll?
scroll backwards in the terminal, how far back can you? - see terminal integrated scrollback - aka: how many lines back in the terminal can you scroll?
settings file location - %APPDATA%\Code\User\settings.json
(often C:\Users\
but usually can get to this by simply opening settings
terminal integrated scrollback - aka: how many lines back you can see
Fill → Preferences → Settings
Then search for terminal.integrated.scrollback
.
default is 1000.
Usually Visual Studio Code automatically looks for the newest versions of various modules. When you agree to update, it might issue the following command
powershell.exe -NoLogo -NoProfile -Command 'Install-Module -Name PackageManagement -Force -MinimumVersion 1.4.7 -Scope CurrentUser -AllowClobber'
On Windows Server machines, sometimes returns
No match was found for the specified search criteria and module name 'PackageManagement'. Try Get-PSRepository to see all available registered module repositories.
I don't find this so much on Windows 10 PCs. Anyway, following the suggestion from the error message above
Get-PSRepository
will likely return
WARNING: MSG:UnableToDownload "https://go.microsoft.com/fwlink/?LinkID=627338&clcid=0x409" WARNING: Unable to download the list of available providers. Check your internet connection.
and
Ping https://www.powershellgallery.com/api/v2
will return
Ping request could not find host https://www.powershellgallery.com/api/v2. Please check the name and try again
To fix (from here), run this:
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
if you simply run
[Net.ServicePointManager]::SecurityProtocol
before running the command to reassign its value above, it might return
Ssl3, Tls
whereas after you run that command to reassign its value above, it will return
Tls12
curiously, if you close your session and then re-run that same command to find out what security protocol you're running, it'll likely return the old result - as if you'd never run the command to correct. So, it seems this change only persists for your session. Anyway, once you run this command to fix the security protocol, the ping command will still fail, but at least now you can update OK.