How to enable/disable particular pylint messages in VSC? - visual-studio-code

I wanted to turn off the messages in VSC about using f-strings in logging messages so I found this which says I need to enable logging-not-lazy and disable logging-fstring-interpolation.
I didn't have a pylint extension in my VSC yet it was still linting my files so I have no idea how to actually enable and disable the above messages. I can easily find how to enable and disable all pylinting but I'm struggling find how to enable and disable selectively.

You should be able to open a project settings file and add this line to enable or disable certain messages:
pylint.fstring: enable/disable

Try this "pylint.lint.disable": ["logging-fstring-interpolation"]

Related

How to configure JS/TS debugger on PhpStorm like on VSCode with attach option?

I am moving from VSCode to PhpStorm. In VSCode I could configure debugger with attach mode.
What is attach mode? It allows you to debug your app in existing browser window. In launch mode new instance of browser is started.
In PhpStorm I can't see that option in docs. Do I search in wrong way? Or there is a trick to do that?
Thank you for response.
You can use the Attach to Node.js/Chrome run configuration to attach the debugger to a running Node.js process/Chrome browser started with --remote-debugging-port option. See https://www.jetbrains.com/help/phpstorm/2021.3/running-and-debugging-node-js.html#node_debugging_running_application for more info.

How to make linter show more messages?

i've just setup default pylint linter in vscode but i do not get for example messages about docstrings. Maybe i missing also some other notifications from linter.
https://code.visualstudio.com/docs/languages/python#_linting
Screnshoot from vscode documentation showing linter message
Where can i chose which messages to enable and which to disable? I've tried looking at settings without success.
Well, i found solution.
Have to add args in Settings > Python › Linting: Pylint Args
https://code.visualstudio.com/docs/python/linting#_default-pylint-rules
For now I enabled all messages
--enable=all
Will experiment later

ESLint is not running because the deprecated setting 'eslint.enable' is set to false. Remove the setting and use the extension disablement feature

ESLint is not working on my React project, and it keep showing below error even I reinstall vs code(version:1.52.1)
But I have another computer without any problem.
I was wondering if there are any extensions interfere with each other,
so I removed some extensions and still not working.
Here are the rest.
Open Code > Preferences > Settings
Search keyword "eslint", and enable "Always show the ESlint status bar item."
And make sure ESlint is running at bottom right.
My issue was that the settings file of the project itself (.vscode/settings.json) had the setting "eslint.enable": false, in it, for some reason. Removing that fixed the issue for me.

How to disconnect VSCode completely from accessing the internet?

I've disabled Telemtry and Crash updater from my VSCode settings. Still VSCode makes requests to the internet. I think It does that to query extension results and downloading, update the VSCode software, fetch the internet images in my markdown etc.
Consider I just installed VSCode, setup extensions which I want and then I'll choose to manually update VSCode from now on.
In windows defender "Allow an app through Firewall", I don't see VSCode there so that I can disable internet to VSCode.
I don't want any new extensions or updates, no fetching images from internet etc. Is there a way I can disconnect VSCode completely from accessing the internet?
Go To File --> Preferences --> Settings.
Type in the search bar "Update".
And disable what you need.They have a setting for everything. For example:
Extensions: Auto Check Updates --> Uncheck
Update: Enable Windows Background Update --> Uncheck.
Please See Attached Photo.

VS Code: How can I enable format-on-save for .cpp files but not .h?

There's a ticket open here for having extension specific settings: https://github.com/Microsoft/vscode/issues/35350
But it's still open. So I'm wondering, is there a hack or workaround or plugin that can do what I want?
Alternatively, I'd be ok (for now) with being able to enable format-on-save in a specific folder, but have it disabled in general.
(We use clang-format but presumably that doesn't really matter)