No name ‘QApplication’ in module ‘PyQt5.QtWidgets’ error in Pylint

I’ve figured out the issue, apparently Pylint doesn’t load any C extensions by default, because those can run arbitrary code. So I found that if you create a system file in your project directory with the file named .pylintrc the rc file can whitelist this package to stop throwing errors by adding the following code … Read more

Why does VS Code give a chip-like / distorted display when I hover over it with my mouse?

Try disabling hardware acceleration. From https://code.visualstudio.com/updates/v1_40#_disable-gpu-acceleration Disable GPU acceleration We have heard issue reports from users that seem related to how the GPU is used to render VS Code’s UI. These users have a much better experience when running VS Code with the additional –disable-gpu command-line argument. Running with this argument will disable the GPU … Read more

How to open Visual Studio Code’s ‘settings.json’ file?

To open the User settings: Open the command palette (either with F1 or Ctrl+Shift+P) Type “open settings” You are presented with a few optionsĀ¹, choose Open User Settings (JSON) This image was taken in the VS Code online editor Which, from the manual and depending on platform, is one of: Windows %APPDATA%\Code\User\settings.jsonĀ² macOS $HOME/Library/Application\ Support/Code/User/settings.json … Read more

Shortcut for running terminal command in VS code

Typically you would set up a build or another task or an npm script and then trigger that with a hotkey. There is another new way to do it with send text to the terminal. For example, try this in your keybindings (Preferences: Open Keyboard Shortcuts (JSON)): { “key”: “ctrl+alt+u”, “command”: “workbench.action.terminal.sendSequence”, “args”: { “text”: … Read more