Skip to content

VS Code

ヘンタイちゃん edited this page Nov 10, 2020 · 2 revisions

Code Completion & Doc Strings

If you're using VS Code like me on Windows 10 and code completion and the doc strings preview on hover doesn't work by default, follow along this troubleshooting guide:

  1. Make sure you ran pip install hentai with the right minor version of python. You can check that your python and pip version match by comparing pip --version and python --version. In case of doubt use
PS C:\Users> # specify version (either 3.7, 3.8 or 3.9 are fine)
PS C:\Users> py -3.7 -m pip install hentai
PS C:\Users> # get lib location
PS C:\Users> py -3.7 -m pip show hentai
  1. In VS Code, open your settings.json and add the following line:
"python.autoComplete.extraPaths": [
    "paste lib location from step 1 here",
]
  1. Close and re-open VS Code again for the changes to take effect
Clone this wiki locally