윈도우에서 USB 에

VSCode 를 포터블로 설치하고 WorkSpace 도 USB에 있을 경우

Project Manager 을 사용할 경우 USB 의 드라이브가 변경시마다 경로를 수정해 줘야 한다.


그래서 임시로 Project Manager 를 수정하여 

rootPath 의 C:\WorkSpace\Project 의 경로를 /WorkSpace/Project 로 적용되도록 변경해 준다.





extension.js


    function compactHomePath(path) {

        if (path.indexOf(homeDir) === 0) {

            return path.replace(homeDir, homePathVariable);

        }

        return path;

    }


를 수정


    function compactHomePath(path) {

        if (path.indexOf(homeDir) === 0) {

            return path.replace(homeDir, homePathVariable);

        }

return path.replace(/\\/g, '/').substr(2, path.length);

        //return path;

    }


storage.js


    ProjectStorage.prototype.existsWithRootPath = function (rootPath) {

        for (var i = 0; i < this.projectList.length; i++) {

            var element = this.projectList[i];

            if (element.rootPath.toLocaleLowerCase() == rootPath.toLocaleLowerCase()) {

                return element;

            }

        }

    };


를 수정


    ProjectStorage.prototype.existsWithRootPath = function (rootPath) {

        for (var i = 0; i < this.projectList.length; i++) {

            var element = this.projectList[i];

            if (element.rootPath.toLocaleLowerCase() == rootPath.toLocaleLowerCase()) {

                return element;

            }

    else if (element.rootPath.substr(0, 1) == '/') {

        var new_root_path = rootPath.replace(/\\/g, '/').toLocaleLowerCase();

        if (element.rootPath.toLocaleLowerCase() == new_root_path.substr(2, new_root_path.length)) {

    return element;

}

    }

        }

    };



더불어 USB에서 사용시 User Settings 에서 "projectManager.projectsLocation" 도 별도로 변경해 주는게 좋다.

임시로 수정한 이유는 Project Manager의 Issues 에 관련 사항이 있어 추후 수정이 될것 같기 때문

'프로그래밍 툴 > Visual Studio Code' 카테고리의 다른 글

[vscode] 윈도우용 키보드 단축키  (0) 2017.01.16
extension for VS Code  (0) 2016.12.16
블로그 이미지

용병

,


keyboard-shortcuts-windows.pdf


블로그 이미지

용병

,

official site : https://github.com/SublimeText/TrailingSpaces



'프로그래밍 툴 > Sublime Text' 카테고리의 다른 글

참고  (0) 2016.12.20
Package Control Installation  (0) 2016.09.08
tab, sidebar 에서 한글 깨질 경우  (0) 2016.09.08
블로그 이미지

용병

,

http://www.slideshare.net/webzealer/sublime-text-editor-3-v14

블로그 이미지

용병

,

쓰는중

Active File In Status Bar

Align

Auto Close Tag

Auto Rename Tag

Bookmarks

Color Highlight

ftp-simple - ftp-sync 로 대체 고민

ftp-sync

highlight-words

Indenticator + "editor.renderWhitespace": "boundary" / "editor.renderIndentGuides": true

Insert Date String

PHP Debug

Project Manager

Rainbow Brackets

Trailing Spaces - 불필요한 공백 highlight

VSCode Great Icons - 아이콘 테마



그냥 써보고

indent-rainbow - 색 조정 안하면 눈 아픔

Multiple clipboards for VSCode - 붙여넣기시 indent 를 변경해 버림 (테스트 해봐야 겠지만 그냥 pass)

PHP IntelliSense - php >= 7.0

theme-seti - 테마 / 아이콘 테마(폴더에 아이콘이 없어서 파일의 위치 가독성이 떨어짐)



테스트중

CSS Peek

CSS Auto Prefix

Dash
Debugger for Chrome
File Peek

Git History

HTML Snippets

HTML CSS Class Completion - 파일이 많을 경우 searching 이 오래 걸린다.

JSHint

jQuery Code Snippets

Path Intellisense

View in Browser

vscode-todo




써보기

ionic 2 Commands with Snippets

ionic2-vscode

블로그 이미지

용병

,

https://packagecontrol.io/installation#st3

접속

코드 복사


sublime Text 3 에서 Ctrl + ` 후 입력


블로그 이미지

용병

,

Menu > Preferences > Browse Packages...

User 폴더에 Default.sublime-theme 생성


아래 내용 저장



[

{

"class": "tab_label"

, "font.face": "Crizin Code"

, "font.size": 9

},

{

"class": "sidebar_label"

, "font.face": "Crizin Code"

, "font.size": 9

}

]


* font.face 는 한글 폰트로

* font.size 는 원하는 크기로

'프로그래밍 툴 > Sublime Text' 카테고리의 다른 글

[package] 불필요한 스페이스 강조 - Trailing Spaces  (0) 2017.01.14
참고  (0) 2016.12.20
Package Control Installation  (0) 2016.09.08
블로그 이미지

용병

,