如何获得崇高的文本编辑器的大纲视图?
-
21-09-2019 - |
题
我如何在为Windows崇高的文本编辑器?
在小地图上是有益的,但我(在它们出现快速导航和定向订单的所有功能klickable名单在我的代码)
错过传统的轮廓也许有一个插件,插件或相似?这也将是很好,如果你可以很快命名其步骤是neccesary,使其工作。
有是这个问题的一个重复在升华文本论坛。
解决方案
按 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)
似乎能返回区域的列表。
所以我想,这将显示你的文件的轮廓/结构的插件是可以的。
这会显示一些像这样的插件:
注意:强> 功能名称显示插件可以用作一个灵感提取类/方法的名称或 ClassHierarchy 来提取轮廓结构
如果您希望能够打印输出或保存轮廓CTR /命令+ 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){};