1.问题:

在电脑上安装了最新版(2022.1)的PyCharm,环境什么的都安装好了,导入代码后,打开pycharm中的terminal,发现前缀是PS(PowerShell),之前用pycharm终端的时候一直都是相应环境下的cmd命令行,还没遇到过PS,很不习惯,就想把它改成从cmd运行。

2.解决:

在File——>Settings——>Tools——>Terminal里,shell path选择: cmd.exe,然后点击ok。如下图所示,即可。

重新打开terminal,可以发现PS没有了,是从cmd运行的,并在相应的代码环境下。

参考博客:https://blog.csdn.net/weixin_44217936/article/details/120611526

GitHub 加速计划 / term / terminal
94.53 K
8.17 K
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:2 个月前 )
d04381ec "HighContrast" is not a possible requested theme. So `_UpdateBackgroundForMica()` would force the settings UI to be light or dark. To fix this, we just check if we're in high contrast mode and, if so, we don't bother setting the requested theme. 13 天前
e83434ff Turns out that having the styles for the KeyChordText and ParsedCommandLineText be empty for high contrast mode caused the issue. Since we're already using theme resources for the colors, we automatically adjust properly to whatever the high contrast theme is (Thanks XAML!). Bonus points: - we didn't need the theme dictionaries anymore, so I just moved them to the ResourceDictionary directly - ParsedCommandLineTextBlockStyle isn't used. So I removed it altogether. Validated command palette with multiple high contrast themes. See PR thread for demo. Closes #17914 13 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐