开发者

Image Source Completion for Sublime Text 2

开发者 https://www.devze.com 2023-04-06 03:33 出处:网络
First of all, I\'m not entirely sure if this fits into stackoverflow, or should rather be placed into programmers or superuser. If I posted into the wrong page, I\'m sorry.

First of all, I'm not entirely sure if this fits into stackoverflow, or should rather be placed into programmers or superuser. If I posted into the wrong page, I'm sorry.

To the question:

In Aptana Studio, for example, there's a very nice feature for the src-attribute for <img>-tag开发者_如何学Gos. When typing into the src-attribute, a directory-listing is shown in the autocomplete-contextmenu, so you can directly select image files and the path is inserted into the attribute.

Here is what I mean:

Image Source Completion for Sublime Text 2

Is there any way, a plugin or something alike, so I can get this behaviour into Sublime Text 2? Preferably working for HTML-Markup and CSS background-images?

edit: Meanwhile I posted this on the sublime userecho, maybe something will come up trough this. I'll keep this question updated.

Sublime Userecho


I just created a plugin to do this. You can find it here: https://gist.github.com/1608287

EDIT: the plugin is now available through Package Control. Just search for "AutoFileName."

0

精彩评论

暂无评论...
验证码 换一张
取 消