Visual Studio Code powershell terminal display is broken - powershell

I am using VisualStudioCode with powershell, and the line breaks as shown below.
Do you have any idea why?
VisualStudioCode Version:
My settings file:
{
"editor.fontFamily": "D2Coding",
"editor.fontSize": 14,
"editor.wordWrap": "on",
"editor.mouseWheelZoom": true,
"window.reopenFolders": "none",
"workbench.colorTheme": "Visual Studio Dark",
"workbench.welcome.enabled": false,
"window.zoomLevel": 0,
"editor.cursorStyle": "line-thin",
"terminal.integrated.shell.windows": "C:\\Windows\\SysWOW64\\WindowsPowerShell\\v1.0\\powershell.exe"
}

You should not be using the "SysWOW64" path for your powershell.exe console.
Update your terminal setting to this:
"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
If you are running Windows 10 you can remove it all together as VS Code will default to PowerShell as the terminal for Windows.

Related

VSCode: Settings.Json and Autopep8 Not Working

Can anyone share their VSCode autopep8 settings.json? Every month or so I get "there is no formatter installed for 'python' files installed" Preferably for WSL2 and a conda environment!
My settings are as follows:
{
"python.formatting.provider": "none",
"[python]": {
"editor.defaultFormatter": "ms-python.autopep8"
}
}
Following: https://github.com/microsoft/vscode-autopep8

VSCode creates empty .ipynb_checkpoints

I run Jupyter on a remote server via ssh inside VSCode. Everything works fine except that Jupyter does not create any checkpoints. However, it creates empty .ipynb_checkpoints folder.
If I start the browser version of Jupyter Notebook from the VSCode terminal, it saves checkpoints with no problems. I prefer the VSCode extension over regular Jupyter because it enables autocompletion and lots of other features. Still, I feel unsafe about not having an option to revert to a checkpoint.
Any suggestions on what might be wrong and how I could fix it?
VSCode version: 1.63.0
Jupyter Extension version: v2021.11.1001550889
settings.json
"remote.SSH.remotePlatform": {
"remote_server": "linux"
},
"terminal.integrated.inheritEnv": false,
"notebook.lineNumbers": "on",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.iconTheme": "material-icon-theme",
"window.autoDetectHighContrast": false,
"workbench.colorTheme": "Visual Studio Light",
"editor.fontSize": 15,
"notebook.output.textLineLimit": 100,
"breadcrumbs.enabled": false,
"checkpoints.addCheckpointOnSave": true,
"checkpoints.askForCheckpointName": false,
"jupyter.generateSVGPlots": true,
"files.autoSave": "onFocusChange"
}
Thank you for the help!

Code formatter 'cannot format' JavaScript file

I am using Macbook and suddenly my Prettier in VSCode didn't work and show a message in the bottom bar like this:
Here is my settings.json file:
"editor.formatOnSave": true,
"workbench.colorTheme": "Material Theme Darker",
"workbench.iconTheme": "material-icon-theme",
"editor.fontSize": 13,
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace"
},
"terminal.integrated.automationShell.osx": "",
"terminal.integrated.shell.osx": "",
"terminal.integrated.fontFamily": "\"Meslo LG M for Powerline\"",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.enableDebugLogs": true
}
Also in the bottom right corner, it shows the check tick for Prettier like that:
Can someone please help me to fix it, I have been trying to uninstall and installed again Prettier or VScode but it still shows the same error message.
I know this can't be your issue because your issue is 10 months old now, but for me the version was updated a few days ago from 9.0.0 to 9.1.0 and it stopped working. I selected "uninstall/install another version" and went back to 9.0.0 and it started working again.

vscode giving me invalid symbol error everywhere

I'm going crazy, VSCode is giving me this error EVERYWHERE (including js files and .gitignore .dockerignore files, even for simple lines such as node_modules in .gitignore)
I need some ideas
my config file
{
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "One Monokai",
"vsicons.dontShowNewVersionMessage": true,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"prettier.tabWidth": 4,
"editor.tabCompletion": "on",
"prettier.singleQuote": true,
"prettier.printWidth": 80,
"window.zoomLevel": 0,
"editor.acceptSuggestionOnEnter": "off",
"editor.minimap.enabled": false
}
My extensions are pretty standard
prettier
react snippets
docker
sass
eslint
some random themes
editor config
graphql
auto-import
This issue randomly appeared for me today as well.
This process worked to solve it on my system, although I don't know what actually caused the issue.
restart vscode
check for a vscode update
(optional) Restart system
If 1-3 don't work you can try
In the command palette run Extensions: Disable All Installed Extension
These steps worked for me when this issue started popping up after installing macOS 10.15 Catalina.
Reinstall node.js using nvm, e.g. nvm install 10 && nvm use 10 to install and use the latest node.js 10.x version (pick your preferred version)
Reinstall eslint via npm i -g eslint
Restart VS Code

Unable to use iTerm2 in vs code

I tried to use iTerm2 as the external terminal in vs code but somehow it failed. Here is my user settings:
{
"workbench.colorTheme": "Material Theme",
"window.zoomLevel": 0,
"editor.fontSize": 14,
"python.pythonPath": "/ommitted/dl/proj/bin/python3.6",
"workbench.iconTheme": "eq-material-theme-icons",
"terminal.explorerKind": "external",
"terminal.external.osxExec": "/Applications/iTerm.app/Contents/MacOS/iTerm2"
}
The above settings returned the following result:
Which I expected a Python 3.6 from a virtualenv environment, as shown in the setting. Is there anything wrong with my setting? Any help will be appreciated!