[development-environment] Sublime TextEditor에서 개요보기를 얻는 방법은 무엇입니까?

Windows 용 숭고한 텍스트 편집기 에서 개요보기를 얻으려면 어떻게합니까 ?

미니 맵은 도움이되지만 기존의 개요 (빠른 탐색 및 방향을 위해 표시되는 순서대로 내 코드의 모든 함수를 간단하게 나열한 목록)가 누락되었습니다.

플러그인, 애드온 또는 이와 유사한 것이 있습니까? 작동하는 데 필요한 단계의 이름을 간단히 지정할 수 있다면 좋을 것입니다.

숭고한 텍스트 포럼 에이 질문중복이 있습니다.



답변

기능 목록을 보려면 CTRL+ R, Mac의 경우 CMD+ R를 누르십시오 . 이것은 Sublime Text 1.3 이상에서 작동합니다.


답변

나는 모두 접기 동작을 사용합니다. 선언에 대한 모든 것을 최소화하고 모든 메소드 / 함수를 볼 수 있으며 관심있는 것을 확장 할 수 있습니다.


답변

Outline 이라는 플러그인 을 패키지 제어에서 사용할 수 있습니다. 사용해보세요!
https://packagecontrol.io/packages/Outline

참고 : 다중 행 / 열 모드에서는 작동하지 않습니다. 여러 행 / 열 작업의 경우 다음 포크를 사용하십시오.
https://github.com/vlad-wonderkidstudio/SublimeOutline


답변

나는 짧게 모양 SublimeText 3 APIview.find_by_selector(selector)지역의 목록을 반환 할 수있을 것으로 보인다.

따라서 파일의 개요 / 구조를 표시하는 플러그인이 가능하다고 생각합니다.

다음과 같은 것을 표시하는 플러그인 :

코드 개요

참고 : 함수 이름 표시 플러그인 클래스 / 메소드 이름을 추출하기 위해 영감을 사용할 수 또는 ClassHierarchy이 윤곽 구조를 추출


답변

아웃 라인을 출력하거나 저장하려면 ctr / command + r은 그다지 유용하지 않습니다. 다음 grep 또는 일부 변형 에서 작업중인 언어 및 상황에 맞게 간단한 찾기를 모두 수행 할 수 있습니다 . ^[^\n]*function[^{]+{

모두 찾기를 수행하면 결과를 복사하여 새 문서에 붙여 넣을 수 있으며 기능 수에 따라 정리하는 데 오래 걸리지 않습니다.

대답은 완벽하지 않습니다. 특히 주석에 기능이라는 단어가있는 경우 (또는 이에 상응하는) 경우에 유용하지만 유용한 대답이라고 생각합니다.

매우 빠른 편집을 통해 지금 작업중인 결과를 얻었습니다.

    PathMaker.prototype.start = PathMaker.prototype.initiate = function(point){};
    PathMaker.prototype.path = function(thePath){};
    PathMaker.prototype.add = function(point){};
    PathMaker.prototype.addPath = function(path){};
    PathMaker.prototype.go = function(distance, angle){};
    PathMaker.prototype.goE = function(distance, angle){};
    PathMaker.prototype.turn = function(angle, distance){};
    PathMaker.prototype.continue = function(distance, a){};
    PathMaker.prototype.curve = function(angle, radiusX, radiusY){};
    PathMaker.prototype.up = PathMaker.prototype.north = function(distance){};
    PathMaker.prototype.down = PathMaker.prototype.south = function(distance){};
    PathMaker.prototype.east = function(distance){};
    PathMaker.prototype.west = function(distance){};
    PathMaker.prototype.getAngle = function(point){};
    PathMaker.prototype.toBezierPoints = function(PathMakerPoints, toSource){};
    PathMaker.prototype.extremities = function(points){};
    PathMaker.prototype.bounds = function(path){};
    PathMaker.prototype.tangent = function(t, points){};
    PathMaker.prototype.roundErrors = function(n, acurracy){};
    PathMaker.prototype.bezierTangent = function(path, t){};
    PathMaker.prototype.splitBezier = function(points, t){};
    PathMaker.prototype.arc = function(start, end){};
    PathMaker.prototype.getKappa = function(angle, start){};
    PathMaker.prototype.circle = function(radius, start, end, x, y, reverse){};
    PathMaker.prototype.ellipse = function(radiusX, radiusY, start, end, x, y , reverse/*, anchorPoint, reverse*/ ){};
    PathMaker.prototype.rotateArc = function(path /*array*/ , angle){};
    PathMaker.prototype.rotatePoint = function(point, origin, r){};
    PathMaker.prototype.roundErrors = function(n, acurracy){};
    PathMaker.prototype.rotate = function(path /*object or array*/ , R){};
    PathMaker.prototype.moveTo = function(path /*object or array*/ , x, y){};
    PathMaker.prototype.scale = function(path, x, y /* number X scale i.e. 1.2 for 120% */ ){};
    PathMaker.prototype.reverse = function(path){};
    PathMaker.prototype.pathItemPath = function(pathItem, toSource){};
    PathMaker.prototype.merge = function(path){};
    PathMaker.prototype.draw = function(item, properties){};


답변