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
Related
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!
This is driving me crazy! I see solutions all over the web and I still can't get this to work. Here is my settings.json file:
{
"C_Cpp.updateChannel": "Insiders",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"arduino.additionalUrls": "",
"arduino.path": "C:\\Program Files (x86)\\Arduino",
"arduino.commandPath": "arduino.exe",
"files.autoSave": "onWindowChange",
}
I am running on Windows 10 and Arduino is installed in:
C:\Program Files (x86)\Arduino
I have four executables there:
arduino.exe
arduino_debug.exe (I downloaded this for good measure!)
arduino-cli.exe
uninstall.exe
When I click "Select Programmer" in VSC, I get"
"Cannot find Arduino IDE. Please specify the "arduino.path" in the User Settings. Requires a restart after change.
I have restarted the IDE and still get the same problem.
I have rebooted the laptop.
I have tried uninstalling both VSC and Arduino.
The Arduino IDE works fine stand-alone.
Wow! I finally stumbled on these installation instructions:
https://nortronics.com.au/setting-up-visual-studio-code-for-arduino-programming/
This is what my .vscode/settings.json (you can find it in the left pane under .vscode in your project folder) now looks like:
{
"arduino.path": "C:\\Program Files (x86)\\Arduino",
"C_Cpp.intelliSenseEngineFallback": "Disabled",
"C_Cpp.intelliSenseEngine": "Tag Parser",
"arduino.enableUSBDetection": true,
}
I am getting this error on my VS Code terminal. I have tried reinstalling the IDE but it did not go away. I am using Linux mint.
This VScode issue they say "By default the VS Code integrated terminal does not run as a login shell".
As this is n answer from 2016, the option they give is deprecated.
The problem I has is running the terminal in WSL environment and what worked for me is to add the following to my setting.json:
{
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash",
"args": [
"--login"
]
}
}
}
You then need to delete the open terminal (the dustbin icon) and reopen. Or just restart VScode.
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!
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.