Skip to content
Sublime Text plugin that autocompletes filenames
Branch: master
Clone or download
liamcain Merge pull request #46 from longhua/patch-1
Highlight HTML code snippet and pretty keyboard shortcuts
Latest commit a522f3d Nov 27, 2013
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Big improvements. Should work faster and feel more fluid. Aug 2, 2012
Default.sublime-keymap Big improvements. Should work faster and feel more fluid. Aug 2, 2012
Main.sublime-menu Added settings file to Preferences menu May 1, 2012
autofilename.sublime-settings by request, added option to insert img's width first Jan 24, 2013

AutoFileName: Autocomplete Filenames in Sublime Text

Do you ever find yourself sifting through folders in the sidebar trying to remember what you named that file? Can't remember if it was a jpg or a png? Maybe you just wish you could type filenames faster. No more.

Whether your making a img tag in html, setting a background image in css, or linking a .js file to your html (or whatever else people use filename paths for these days...), you can now autocomplete the filename. Plus, it uses the built-in autocomplete, so no need to learn another pesky shortcut.


If you are looking to autocomplete an image path in an HTML <img> tag:

    <img src="../|" />

Pressing ctrl+space, will activate AutoFileName. I list of available files where be ready to select.

Looking for an even more automatic and seemless completion? Add the following to your User Settings file:

     "characters": "<",
     "selector": "text.html"
     "characters": "/",
     "selector": "string.quoted.double.html,string.quoted.single.html, source.css"

With this, there's no need to worry about pressing ctrl+space, autocompletion with appear upon pressing /.

You can’t perform that action at this time.