2008-08-13 7 views

답변

5

체크 아웃 -이 기능이 포함 된 Visual Studio 애드온이며 다른 많은 개발 도움이됩니다.

C# Completer, 다른 추가 기능을 참조하십시오.

직접 롤업하려면 this article을 확인하십시오. 그런데 그렇게해야한다는 것은 당연한 것입니다.

2

, 일부는 이미 내장되어 있습니다 ("SVM"를 입력하고 TAB-TAB을 타격하려고) ...

을 정보의 풍부한이 작성에 그물에있다 :

Jeff did a post himself here

google! 나는 그들을 많이 사용한다! : D

6

도구는 예뻐요 (! 특히 ReSharper에서 만 $ 200-350 아야에서)하지만 난 그냥 매크로를 기록하고 Ctrl 키에 할당 결국 + ALT + [

매크로는 다음과 같이 나왔다 :

Sub FunctionBraces() 
    DTE.ActiveDocument.Selection.NewLine 
    DTE.ActiveDocument.Selection.Text = "{}" 
    DTE.ActiveDocument.Selection.CharLeft 
    DTE.ActiveDocument.Selection.NewLine(2) 
    DTE.ActiveDocument.Selection.LineUp 
    DTE.ActiveDocument.Selection.Indent 
End Sub 

편집 : 매크로 레코더를 사용하여 이렇게 만들었고 너무 좋지 않았습니다.

0

위의 @ Luke를 기반으로 방금 만들었습니다. 이 사람은, 당신은 다음 키 조합을 누르 Enter 키를 눌러 원하는 그것은 삽입합니다 :

if() 
{ 

} 
else 
{ 

} 

그리고 그것은 if 문에서 괄호에 커서를 넣어 것입니다.

Sub IfStatement() 
    DTE.ActiveDocument.Selection.Text = "if()" 
    DTE.ActiveDocument.Selection.NewLine() 
    DTE.ActiveDocument.Selection.Text = "{" 
    DTE.ActiveDocument.Selection.NewLine(2) 
    DTE.ActiveDocument.Selection.Text = "}" 
    DTE.ActiveDocument.Selection.NewLine() 
    DTE.ActiveDocument.Selection.Text = "else" 
    DTE.ActiveDocument.Selection.NewLine(2) 
    DTE.ActiveDocument.Selection.Text = "{" 
    DTE.ActiveDocument.Selection.NewLine(2) 
    DTE.ActiveDocument.Selection.Text = "}" 
    DTE.ActiveDocument.Selection.LineUp(False, 7) 
    DTE.ActiveDocument.Selection.EndOfLine() 
    DTE.ActiveDocument.Selection.CharLeft(3) 
End Sub 
관련 문제