0
我試圖使用Visual Studio宏編輯器一個Visual Studio宏代碼格式逗號第一
https://visualstudiogallery.msdn.microsoft.com/d3fbf133-e51b-41a2-b86f-9560a96ff62b
它允許用戶編寫宏在javascript來驅動IDE。我希望能夠做的就是編寫格式文本
public void Foo(
int i,
int b,
int c)
到
public void Foo
(int i
, int b
, int c
)
這個宏應該是很平凡的,如果我只知道命令做到以下幾點。
(1) Move the cursor to the next matching character, and detect if it is not found
(2) Insert a carriage return
(3) Join lines together
我已經得到儘可能
dte.ExecuteCommand("Edit.Find");
dte.Find.FindWhat = ",";
但希望有人會知道他們的DTE命令優於一