From 43e1590e51ebf99298a2a9578240a75d3f37cab3 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Thu, 1 Apr 2021 15:38:27 -0700 Subject: [PATCH] Docs: some betterments around VSCode and formatting. Point out that Rewrap is an option for line wrapping, once black does not handle it all. Finally, cite a better option to handle multiple Python venvs in that editor. --- docs/development.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/development.md b/docs/development.md index fae7db509e..ba5276883d 100644 --- a/docs/development.md +++ b/docs/development.md @@ -27,7 +27,14 @@ Follow the [instal](install.md) steps to prepare the source code. Then follow th ### Visual Studio Code -First, click on the Python version at the bottom left and enter the path where the above command was issued. This will point the Code to the Poetry virtual environment. +First, click on the Python version at the bottom left of the editor's +window and enter the path where the above command was issued. You +might as well edit the "Python: Venv Path" settings variable of the +editor to point to the root folder of your Poetry virtual environments +(e.g. "```~/.cache/pypoetry/virtualenvs```"), so that selecting +virtual environments in the future will be a matter of selecting from +a drop down list with everything in there included. This will point +the currenly workspace to use the correct Poetry virtual environment. Make sure below settings are in root level of `.vscode/settings.json`. @@ -78,7 +85,12 @@ Then run `M-x add-dir-local-variable RET python-mode RET pyvenv-activate RET