简体   繁体   中英

Visual Studio Code Does Not Suggest Python Object Attributes

I use VS Code v1.25.1 with the Python extension added. Although it suggests me the attributes and methods of libraries and classes, ie I type from sklearn. it makes suggestions like ensemble, exception etc., when I generate a numpy array x_data = np.linspace(0.0, 10.0, 1000000) and on the next line say I would like to use a method or an attribute such as argmax it does not show me the suggestion list after typing x_data. .

In Jupyter Notebook I used to press tab after typing x_data. to see the list. I wonder if there is any shortcut to achieve the same.

If you have IntelliSense installed, it should work automatically as you type. Or you might try Ctrl + Space . It also depends on your configuration (see the link).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM