Web Dev/5. Projects

[Vscode Extension] Laziness-Alarm: 타이핑아무것도 안하면 알람을 띄우는 익스텐션

hYhY1234 2021. 2. 14. 20:25
728x90

[Visit My Repository]

사용 화면! 암것도 안하면 게으르다고 뭐라고 한다

사용방법

cmd + shift + p 
start lazy

 

개발할때 참고한 자료

- vscode 개발 문서

 

Your First Extension

Create your first Visual Studio Code extension (plug-in) with a simple Hello World example.

code.visualstudio.com

- vs code sample

 

microsoft/vscode-extension-samples

Sample code illustrating the VS Code extension API. - microsoft/vscode-extension-samples

github.com

 

위의 예시를 참고해서 vs code extension을 개발했다. 

 

개발을 하고나서 publish는 로컬에서만 확인할 수 있도록 했다. 그때 prepublish를 하면 vsix 파일이 생기는데 이를 실행해서 로컬이나 나만 사용할 수가 있다. 

 

itnext.io/creating-and-publishing-vs-code-extensions-912b5b8b529

 

Creating and publishing VS Code extensions

Ok, we created a snippet in the first article of our series Snippet creation. Let’s now take our snippet to VS Code Marketplace.

itnext.io

이때 error가 발생하는 경우가 있는데 이때 

 

npm run compile을 실행해서 내 패키지를 미리 한번 컴파일을 하면 vsce package 를 하면 제대로 publish가 된다.

[내 글]

 

 

VScode extension 개발 후기

이런것도 할 수 있구나 했지만 자료가 많지 않고 문서만 보고 해야하다보니까 머리가 좀 아프긴했다. 하지만 나중에 더 필요한게 있으면 계속 한번 개발해보면 재미있을 것 같다!