
答案1
如何應用 IntelliSense 建議?
您需要使用右箭頭鍵->:
預測的按鍵綁定
鍵綁定控制遊標移動和預測中的其他功能。為了支援用戶在多個平台上運行預測智慧感知,用戶可以透過命令列或設定檔腳本設定鍵綁定。
PSReadLine
包含導航和接受預測的功能。例如,要接受顯示的預測,PSReadLine
包含以下函數:`AcceptSuggestion` – Accept the current inline suggestion `AcceptNextSuggestionWord` – Accept the next word of the inline suggestion
AcceptSuggestion
是在 內建置的ForwardChar
,預設情況下綁定到RightArrow.RightArrow當遊標位於目前行末尾時,按 接受內聯建議。