Win10 配置

2019-01-17  配置    1,691

系统使用utf-8

区域设置 -> 其他日期、时间和区域设置 -> 区域 -> 管理 -> 更改系统区域设置 -> 勾选 Beta 版的 utf-8 功能

Powershell

在 powershell 中编辑 $profile

Set-ExecutionPolicy -Scope CurrentUser remotesigned
Set-PSReadlineOption -BellStyle None
Set-PSReadlineKeyHandler -Key Ctrl+Shift+q -Function DeleteCharOrExit
Set-PSReadlineKeyHandler -Chord Ctrl+Shift+n -ScriptBlock { start Powershell }
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$Shell = $Host.UI.RawUI
$Shell.WindowTitle="xalanq"
$size = $Shell.WindowSize
$size.width=120
$size.height=40
$Shell.WindowSize = $size
$size = $Shell.BufferSize
$size.width=120
$size.height=5000
$Shell.BufferSize = $size
cls
set-location "E:/code"

set-alias np "C:/Program Files (x86)/Notepad++/notepad++.exe"
set-alias vim "C:/Program Files (x86)/Vim/vim80/gvim.exe"

右键添加Powershell和CMD

编辑注册表 regeditHKEY_CLASSES_ROOT\Directory\Background\shell

加入一个新的项 Powershell_here,在这个项内 默认 值写 Powershell Here,再在这个项内新建字符串值 Icon,值为 %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe。在该项下建一个子项 command,默认值为 powershell.exe -noexit -command Set-Location '%V'

CMD 的类似,与 Powershell 相对应的值为 Cmd Here%windir%\system32\cmd.exe"C:\Windows\system32\cmd.exe"

VSCode配置

{
    "files.autoSave": "off",
    "editor.quickSuggestionsDelay": 0,
    "editor.insertSpaces": true,
    "editor.cursorStyle": "underline",
    "editor.cursorBlinking": "blink",
    "terminal.integrated.cursorStyle": "underline",
    "terminal.integrated.cursorBlinking": true,
    "files.eol": "\n",
}

欢迎留言>_<

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据