Merge pull request #2452 from remcohaszing/master

Fix python autocomplete paths for Google AppEngine
This commit is contained in:
Kraig Brockschmidt 2019-03-06 08:24:21 -08:00 коммит произвёл GitHub
Родитель 90dedc1c18 55c125dcd2
Коммит 9a3c206780
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -31,14 +31,14 @@ You can also customize the general behavior of autocomplete and IntelliSense, ev
### Enable IntelliSense for custom package locations
To enable IntelliSense for packages that are installed in other, non-standard locations, add those locations to the `python.autoComplete.extraPaths` collection in the settings file (the default collection is empty). For example, you might have installed Google App Engine installed in custom locations, in which case you'd specify those locations as follows:
To enable IntelliSense for packages that are installed in other, non-standard locations, add those locations to the `python.autoComplete.extraPaths` collection in the settings file (the default collection is empty). For example, you might have installed Google App Engine installed in custom locations, specified in `app.yaml` if you use Flask. In this case you'd specify those locations as follows:
**Windows:**
```json
"python.autoComplete.extraPaths": [
"C:/Program Files (x86)/Google/google_appengine",
"C:/Program Files (x86)/Google/google_appengine/lib" ]
"C:/Program Files (x86)/Google/google_appengine/lib/flask-0.12"]
```
**macOS/Linux:**
@ -46,7 +46,7 @@ To enable IntelliSense for packages that are installed in other, non-standard lo
```json
"python.autoComplete.extraPaths": [
"~/.local/lib/Google/google_appengine",
"~/.local/lib/Google/google_appengine/lib" ]
"~/.local/lib/Google/google_appengine/lib/flask-0.12" ]
```
The `python.autocomplete.addBrackets` setting (default `false`) also determines whether VS Code automatically adds parentheses (`()`) when autocompleting a function name. For example, if you set `addBrackets` to `true`: