Sublime Texteditor에서 개요보기를 얻는 방법은 무엇입니까?
-
21-09-2019 - |
문제
개요보기를 어떻게 얻습니까? 숭고한 텍스트 편집기 Windows 용?
Minimap은 도움이되지만 전통적인 개요 (빠른 탐색 및 방향을 위해 나타나는 순서대로 내 코드의 모든 기능의 Klickable 목록).
플러그인, 애드온 또는 이와 유사한 것이 있습니까? 어떤 단계가 작동하도록 해야하는지 곧 이름을 지을 수 있다면 좋을 것입니다.
이있다 이 질문의 복제 숭고한 텍스트 포럼에서.
해결책
때리다 CTRL 키+아르 자형, 또는 CMD+아르 자형 Mac의 경우 기능 목록의 경우. 이것은 숭고한 텍스트 1.3 이상으로 작동합니다.
다른 팁
나는 접기 모든 동작을 사용합니다. 그것은 선언에 대한 모든 것을 최소화하고 모든 방법/기능을보고 관심있는 방법을 확장 할 수 있습니다.
플러그인이라는 플러그인 개요 패키지 제어에서 사용할 수 있습니다.https://packagecontrol.io/packages/outline
참고 : 멀티 행/열 모드에서는 작동하지 않습니다. 여러 행/열의 경우 작업 포크를 사용하십시오.https://github.com/vlad-wonderkidstudio/sublimeoutline
나는 간단히 봅니다 Sublimetext 3 API 그리고 view.find_by_selector(selector)
지역 목록을 반환 할 수있는 것 같습니다.
따라서 파일의 개요/구조를 표시하는 플러그인이 가능하다고 생각합니다.
다음과 같은 것을 표시하는 플러그인.
메모: 그만큼 기능 이름 디스플레이 플러그인 클래스/방법 이름을 추출하기위한 영감으로 사용하거나 분류 개요 구조를 추출합니다
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){};