I'm using VS Code 1.32 on ubuntu, which i access as a remote client app through ssh on windows.
Whenever I select text using the mouse or the clipboard, it is automatically copied in the clipboard. The only plugins i have are prettier and eslint.
How can i disable that behavior ?
Settings: Editor: Selection Clipboard - uncheck
In the Files/Preferences/Settings search for "Editor: Copy With Syntax Highlighting" and disable it. That worked in my case with VS Code 1.42
Happened to me while using VNC Viewer - The solution was disabling "Send primary selection to viewers" in VNC config window.
Go to File > Preferences > Settings and search for "Right Click Behaviour".
Change the option of Terminal > Integrated: Right Click Behaviour from copyPaste to 'default`.
Related
New version of VS Code started restoring Terminal sessions from the last time it was used. How to override that behavior?
This config in settings.json solved it:
"terminal.integrated.persistentSessionReviveProcess": "never"
So your settings are visible in JSON or UI format. For JSON #Nenad Milosavljevic solution should do the job.
I'll explain the UI one.
Open command palette (CTRL + SHIFT + P)
Type user settings and select the option
Select Features > Terminal > scroll down a little where you'll find the option and then uncheck the option "Integrated: Enable Persistent Sessions"
Close the tab and you're done.
Disable this setting:
Terminal > Integrated: Enable Persistent Sessions
It is enabled by default.
I just did a fresh install of Windows 10 Pro version 1903 build 18362.116 and Visual Studio Code. Now the integrated terminal only launches externally.
Pressing Ctrl + ~ results in this.
What am I missing? How do I get it to open integrated again?
EDIT
After working with VSCode team it is a verified bug. See the Github issue here. I posted the workaround as an answer here.
OK, worked through this one in VSCode repo issues.
For now, until it's fixed, turn off ConPTY integration in the User Settings.
💥💥💥
The issue now says use legacy console. To change the setting open a cmd prompt. Right click the title to bring up properties.
Then Uncheck 'Use legacy console'
To change the integrated terminal on Windows, you just need to change the terminal.integrated.shell.windows line:
Open VS User Settings (Preferences > User Settings). This will open two side-by-side documents.
Check if "terminal.integrated.shell.windows" has value "C:\\Bin\\Cmder\\Cmder.exe" setting to the User Settings document on the right.
Remove this line.
Ctrl + ~ will now open integrated terminal of VSCode.
If the above solution doesn't work then can you try below values and check if it works for you:
// Command Prompt
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe"
// PowerShell
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\bash.exe"
From the Command Palette (Ctrl+Shift+P), use the View: Toggle Integrated Terminal command.
Try custom shortcut:
[
{
"key": "ctrl+`",
"command": "workbench.action.terminal.toggleTerminal"
}
]
Had this problem fixed. Found the solution from the VS Code support.
for error:
Terminal exits with code 3221225786 (or similar)#
"This can happen when you have legacy console mode enabled in conhost's properties. To change this, open cmd.exe from the start menu, right-click the title bar, go to Properties and under the Options tab, uncheck Use legacy console."
source: VS Code docs
I don't know what the correct name is for the issue I am having, or whether it is related to my VSCode, or some of its extensions.
Here is a screenshot depicting the problem:
Linux, VSCode 1.19.2
"gitlens.blame.line.enabled": false,// was working in previous versions
"gitlens.currentLine.enabled": false,// in modern version
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false,
Answer for 2019
Ctrl+Shift+P => "Open Settings"
Ctrl+F for "Show the authorship code lenses"
Deselect the line.
November 2021 review:
(GitLens v10.0.0-11.7.1, VSCode v1.62.0)
Ctrl+Shift+P -> GitLens: Open Settings. Then find "Current Line Blame" and "Git Code Lens" headers. Just deselect big checkboxes located at them:
One can now simply add "gitlens.mode.active": "zen" to settings.json with Gitlens version 9.5.1 to disable the annoying in-line features.
Tested with VScode 1.31.1 on Windows and Mac.
As of 1st Jan, 2022:
Go to settings and search for "current line blame". Then uncheck the option that says Gitlens>Current Line>Enabled
The name of the setting that you're looking for is called, Git Code Lens.
As mentioned in previous replies, there are several options available in the User or Workspace Settings Configuration. In more recent versions of VS Code, you can more easily access those settings from the menu.
On Windows/Linux - File > Preferences > Settings
On macOS - Code > Preferences > Settings
To update this setting for all projects, Navigate under User Settings > Extensions > GitLens. I chose to disable Git Code Lens entirely by deselecting the checkbox for Code Lens: Enabled; however, you may only want to disable certain features or only at the workspace level. I have included a screenshot including some of the settings below.
For additional information on User and Workspace Settings within VS Code:
https://code.visualstudio.com/docs/getstarted/settings
As of version 8.5.6 you can turn it off with:
"gitlens.codeLens.enabled": false
Answer for 2022
Ctrl + Shift + P and write Open Setting then Ctrl + F search for Current Line Blame turn it off.
2021 recent Visual Code. "Current Line Blame" is the one you should be looking for.
Windows 10
VSCode 1.63.2
2022 Git> Decorations: Enabled Solves the problem
Image of vscode settings
I think this is what most people want to achieve. Add these settings to the vscode user preferences:
{
"gitlens.currentLine.enabled": false,
"gitlens.codeLens.authors.enabled": false,
"gitlens.codeLens.recentChange.enabled": false
}
Before:
After:
If you are not using GitLens and you are using GitHistoryDiff it has a setting, "Show git blame information for each line". Uncheck that option.
I can't get two features in Microsoft's Visual Studio Code to work.
1) I can't activate the "View in Browser" extension.
2) The tool tip feature isn't displayed in the editor.
Thanks in advance.
I would suggest you re-install the latest version from vscode
Open vscode, press F1, then type 'ext install[space]', [space] = space key;
Select "Extensions: Install Extension", then type 'view in browser'; Click bottom right 'tree' like logo to install extension; then Restart Now.
Open vscode, create an html file, then press Ctrl + F1 to view the html in your default browser.
Reference:
https://marketplace.visualstudio.com/items?itemName=qinjia.view-in-browser
Instead of using View in browser extension, I suggest you to use View in Default Application Extension.
Press F1 and narrow down the list commands by typing extension
Select the Extensions: Install Extension command.
Search for this extension by typing in the text view in default application
Once installed, you will be prompted to restart your instance of Visual Studio Code to use the extension
After saving your HTML file, press first ctrl+k and then ctrl+b.Your HTML file will be open in your default browser
Go To File - > Settings.
It will open a new window to the right.
Add your proxy settings there as:
"http.proxy" : "value".
Restart the Visual Studio Code.
It should work.
I'm looking for a good ssh console plugin for Eclipse, and can't find much at all. Would anyone have some good leads on one?
If you don't like the ssh.shells or ssh.terminals subsystems in Eclipse RSE, try using the Terminal View instead.
Open up Window -> Show View -> Other (or press Shift+Alt+Q then Q)
Type Terminal in the search box
Select the Terminal view listed under the Terminal folder
You'll see a window that looks similar to RSE's ssh.terminals subsystem... but with some extra buttons on the top right.
How to use it:
To fix the scrolling issue (ie: for programs like top), click the Scroll Lock button at the right.
For extra Terminal window tabs, click the down arrow on the New Terminal Connection button
To change the current terminal window's settings, use the Settings button.
If you really like the annoying command input box at the bottom, you can toggle it on and off with the appropriate button.
Change the Background Color:
For some reason, the default setting is to use a terribly hard to see white background. To change this:
Go to Window -> Preferences
Type Terminal in the search box at the top left, or select Terminal on the left.
Check the box that says Invert terminal colors
You can also configure a larger terminal buffer or connection timeouts here
Click Apply
Now the terminal should have a black background! If you want a local terminal, you can enable ssh on your local machine, and connect to localhost.
In Eclipse 3.4.1, there is the Remote Systems Explorer perspective that allows you to create and connect to SSH terminals (here)
There are plugins that exist that allow you up open WinSCP or Putty from within Eclipse.
I would advise maybe doing a search for "putty eclipse plugin" or similar
You can also try the Terminal plug-in for Eclipse
This plug-in provides a fully-working, command-line terminal to
Eclipse 3.7 or later (yes, even 4.2!) It works on Linux and MacOS
only.
More info at: http://alexruiz.developerblogs.com/?p=2428