(환경 Setting
주석 설정
Visual Commander - 자동 주석 매크로(VS2012 부터 IDE매크로 삭제되어 대신 사용됨)
DownLoad
https://vlasovstudio.com/products.html 에서 visual commander 다운로드 후 설치
도구 > 확장및업데이트 에서 Visual Commander 검색후 설치
사용법
VCMD 메뉴 >> Commands 선택
메크로 Add
매크로 작성
file
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
{
EnvDTE.TextSelection ts = DTE.ActiveWindow.Selection as EnvDTE.TextSelection;
if(ts == null)
return;
ts.Insert("/****");
ts.NewLine(1);
ts.Insert("@namespace ");
ts.NewLine(1);
ts.Insert("@brief ");
ts.NewLine(1);
ts.Insert("@details ");
ts.NewLine(1);
ts.Insert("@author " + System.Environment.UserName);
ts.NewLine(1);
ts.Insert("@date " + System.DateTime.Now.ToLongDateString() + " " + System.DateTime.Now.ToLongTimeString());
ts.NewLine(1);
ts.Insert("@updateAuthor " + System.Environment.UserName);
ts.NewLine(1);
ts.Insert("@updateDate " + System.DateTime.Now.ToLongDateString() + " " + System.DateTime.Now.ToLongTimeString());
ts.NewLine(1);
ts.Insert("@version ");
ts.NewLine(1);
ts.Insert("@see ");
ts.NewLine(1);
ts.Insert("****/");
}
class
method
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
{
EnvDTE.TextSelection ts = DTE.ActiveWindow.Selection as EnvDTE.TextSelection;
if(ts == null)
return;
ts.Insert("/**");
ts.NewLine(1);
ts.Insert("@brief ");
ts.NewLine(1);
ts.Insert("**/");
}
public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package)
{
EnvDTE.TextSelection ts = DTE.ActiveWindow.Selection as EnvDTE.TextSelection;
if(ts == null)
return;
ts.Insert("/***");
ts.NewLine(1);
ts.Insert("@brief ");
ts.NewLine(1);
ts.Insert("@details ");
ts.NewLine(1);
ts.Insert("@see ");
ts.NewLine(1);
ts.Insert("***/");
}
도구 >> 옵션 >> 환경 >> 키보드 >> VCmd 검색 >> 바로가기 키 지정(Shift + Alt + 숫자)
확장
Bot SDK - 도구 > 확장 및 업데이트 > bot builder 검색 > 다운로드 하여 설치함.
Empty Solution 만들기 : 파일 > 새로만들기 > 새 프로젝트 > 기타 프로젝트 형식 > Visual Studio 솔루션
빈 솔루션을 만들면 솔루션 폴더가 생성되며 .vs 폴더가 생긴다
.vs폴더내의 솔루션 폴더와 .sln파일을 원하는 위치에 이동하여 사용함!
디렉토리 생성 체크 해제한후 솔루션 파일 생성 해도됨.
프로젝트 복사
Process
솔루션 및 프로젝트 폴더Copy하고 폴더명 변경 후 Visual Studio로 Open
솔루션, 프로젝트 오른쪽 클릭 > rename을 통해 이름을 변경
프로젝트 Properties 에서 assembly name, default namespace를 변경
(옵션) 프로젝트 속성의 Assembly 고유 Guid를 변경 (복사 원본 프로젝트와 동일함)
bin, obj 폴더 삭제후 다시 실행
소스단의 namespace 이름을 찾기 및 바꾸기(Ctrl + Shift + h)를 통해 새로운 이름으로 변경
(구문 바꾸기 : namespace oldName. using oldName, @using oldName )
Nuget package 관리
의존성있는 Package를 손쉽게 관리 할 수 있으나, Package가 변경,삭제,손상 될 수 있음
전체 재설치
bin, obj폴더를 삭제하고 packages 폴더를 삭제 합니다.
Tools > Nuget Package Manager > Package Manager Console 메뉴로 이동하여 Console창 실행
"update-package -reinstall 패키지명"을 입력하여 복구작업을 진행합니다. (전체 패키지를 복구할 경우 패키지명 생략)
Hot Key
F12 : 정의부로 이동
Tip
참고