如何在Powershell中自定义默认的CursorSize


9

我在$ PROFILE文件中将他的默认CursorSize设置为:

[Console]::CursorSize = 10

要么

$HOST.UI.RawUI.CursorSize = 10

但是,在Powershell中使用另一个控制台后,cursorSize将重置,例如: 在此处输入图片说明

另外,我设置CURSORSIZE注册表全部编辑在此处输入图片说明在此处输入图片说明

有什么办法可以永久更改默认的CursorSize吗?

Answers:


1

1,尝试将自定义代码放入$ profile.CurrentUserAllHosts文件中,看看它是否适用于python shell。

2,如果它不起作用,请将您的代码放入功能提示中,以便每次打印提示时都将强制调用这些代码。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.