Visual Studio Enterprise 2017:從空白行開始時 Ctrl + D 不起作用

Visual Studio Enterprise 2017:從空白行開始時 Ctrl + D 不起作用

Visual Studio 中的重複快捷方式(ctrl+d)對我來說似乎非常挑剔,所以我做了一些測試,發現每當我在程式碼行上開始選擇時,它都會運作得很好。

例子:

[select start here] //Here is some code

//Maybe some more lines

[select end here]

那會複製得很好。但是,如果我從空白行開始,則不會。

例子:

[select start here]

//Here is some code
//Maybe some more lines [select end here]

[or here]

現在 ctrl+d 沒有任何作用。這是一個錯誤還是一個功能?

答案1

這既不是錯誤,也不是功能。CTRL+D在這兩種情況下都可以正常工作。再試一次。也許您不小心按下了其他按鍵。

相關內容