Sublime Texteditorでアウトラインビューを取得する方法は?
-
21-09-2019 - |
質問
アウトラインビューを入手するにはどうすればよいですか 崇高なテキストエディター Windows用?
ミニマップは役に立ちますが、従来のアウトライン(コード内のすべての関数のklickableリストが、迅速なナビゲーションとオリエンテーションのために表示される順序であります)を見逃しています)
たぶんプラグイン、アドオンなどがありますか?また、どの手順が機能するかをすぐに名前にすることができればいいでしょう。
があります この質問の複製 崇高なテキストフォーラムで。
解決
打つ Ctrl+r, 、 また CMD+r Macの場合、関数リストの場合。これは、崇高なテキスト1.3以上で機能します。
他のヒント
私はすべてのアクションをフォールドします。宣言のすべてを最小限に抑え、すべての方法/関数を確認し、興味のある方法を拡張できます。
名前のプラグイン 概要 パッケージコントロールで利用できます、試してみてください!https://packagecontrol.io/packages/outline
注:マルチロウ/列モードでは機能しません。複数の行/列の場合は、このフォークを使用してください。https://github.com/vlad-wonderkidstudio/sublimeoutline
簡単に見ています sublimetext 3 API と view.find_by_selector(selector)
地域のリストを返すことができるようです。
したがって、ファイルのアウトライン/構造を表示するプラグインが可能であると思います。
このようなものを表示するプラグイン:
ノート: 関数名表示プラグイン クラス/メソッドの名前を抽出するためのインスピレーションとして使用できます。 クラスハイアラルキー アウトライン構造を抽出します
アウトラインを印刷または保存できるようにしたい場合は、CTR /コマンド + Rはあまり役に立ちません。簡単にすることができます すべてを見つけてください 以下 グレップ ^[^\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){};