1. Python插件
Python插件是用VSCode开发python的必装插件。
问题:机器上装了多个pyhon;每次打开py脚本都得重选interpreter。
解决:配置Python插件的interpreter,操作:
![7b203def159d175abd741bd9daf7510c.png](https://i-blog.csdnimg.cn/blog_migrate/bcfe864e10a8d97a36af8a67ceb134b6.jpeg)
pylint lint不好django文件,如何处理及对VSCode做相应调整☞reference [1]
2. Code Runner插件
Code Runner插件可以帮你通过快捷键编译运行各种程序。
Code Runner默认Shift Alt n
使用:
![7edf18ca822b650a8e2ea90e8e6b088b.png](https://i-blog.csdnimg.cn/blog_migrate/c0d595be97941a99612e564888be8a01.jpeg)
看以看到Code Runner帮你在终端输入了编译运行命令。
问题:对编译运行命令做定制,如link一些库,固定输入参数。
解决:配置Code Runner对应类型程序的命令,如编译C++ OpenMP文件时,加入-fopenmp
:
![28e48eb6f0fb7f8c5c134a8ea364cd4b.png](https://i-blog.csdnimg.cn/blog_migrate/7d369df98b5f4410a64b74ab3590f5de.jpeg)
References
[1] VSCode中设置Python interpreter,子墨,2018/3