Does anyone know of a plugin for Sublime Text 2 that allows you to preview images? I tend to use Sublime for everything now, but one thing that I miss about Coda is the ability to see pictures without having to leave the program.
Apologies if this has already been answered elsewhere.
Sublime Text 3 dev build 3055 realized with image preview when opening images.
You can download dev builds on the official site.
Sublime Text 3 dev builds are currently available to registered users only.
this one opens default image viewer
Sublime-Text-2-Image-Viewer
Related
Hi so I recently purchased a mac and I am trying to preview my code in safari and its not working my file is saved as .html and everytime I click the file it just shows me my top sites on safari can someone please help me!
I do not have the reputation to comment yet.
Put the file on your desktop and Get Info. Make sure in the name that the extension is .html and you can also try to check/uncheck Hide Extension and try that as well. Also double check to make sure you do not have any illegal characters in your file name.
Make sure you are not using Word or Pages. Use Text Wrangler or Sublime Text (well really any text editor that allows you to save as specific file types).
I use a Mac for all of my web coding and I have never had this issue.
Edit* If you are using an editor that allows you to choose between rich text and plain text make sure you use plain text. TextEdit is not a plain text editor either.
Load Chrome and then use its view > developer > view source menu option. Works well for me!
What I want
How can I 'build' an HTML file so that it opens in my browser and Sublime Text 2 does not display a build panel?
More generally, how can I interact with Sublime Text 2 settings from my .sublime-build files?
I'm on Mac OS X/Chrome 32.0.1700.102.
I'd like to suppress the build panel in Sublime Text 2 (ST2) on a per-build-system basis. If necessary, I'd be OK suppressing depending on the syntax of the open window. Basically, I want to be able to open an HTML file I'm editing in my browser without seeing the [Finished in 0.01s] output at the bottom of the screen. An analogous question has been asked on superuser.
The setting to change is show_panel_on_build and my HTML.sublime-build is simply
{
"cmd": ["open", "$file"]
}
What I've tried
When I add "show_panel_on_build": false to HTML.sublime-build my builds hang and do not complete (and the panel shows up!).
I also tried installing Better Build System, but then my build stopped working entirely. I did not investigate the issue in detail.
Obviously, I could so something silly like write a script which modifies my User Preferences file outside of ST2, but I'm hoping for a more elegant solution.
Any thoughts (or pointers to appropriate plugins) appreciated. Thanks!
Sublime Text 2 only has an additional side bar window, but it's inconvenient with bigger file, such as reStructuredText file with lots of contents.
So is there a plugin to show file structure in Sublime Text (haven't Google out so far), or it is possible to create a plugin to show the file structure?
Thanks!
There is no such plugin as far as I know.
For your code files you can see the structure in Go to Symbol menu (CMD+R on OSX)
if the files are supported by Sublime Text. SublimeCodeIntel provides "code intel" support for many programming languages.
Sublime Text did not have a decent .RST structure parser last time I checked few months ago, but I would be really grateful if someone creates such plugin (willing to donate).
You can create syntax colorizer with the base Sublime Text (no Python coding needed), but for language analysis a full fetched plugin is required. I suggest you open another question for how to write such plugins.
How to configure Sublime Text 2 editor for easier working with ATK4 framework?
I'm interested in some standard macros (snippets) for page, view, model files and maybe some more Sublime Text 2 editor configuration details useful for developing in ATK4.
I had two and I've contributed them into atk4/tools folder. You can found them here:
https://github.com/atk4/atk4/tree/master/tools
Feel free to contribute more!
I cannot find any plugins for ATK4. You could make requests for plugins on the ST2 UserEcho and see if you get any bites.
Is there a plug-in (or setting) in sublime2 that shows a side pane with a navigator (or tree view) for the class in an active file? Someting similar to the class navigator in netbeans?
Use the CTRL+R command to browser the symbols on the current file, and CTRL+SHIFT+R (only available in Sublime Text 3) to browse symbols in all file opened in tabs.
I think CTags is a nice candidate too.
It uses the ctags executable to index all your project files and allow you to browse through symbols in your whole project. Quite impressive.
Using Sublime2, the CMD+R is the 'Goto Symbol' option on the 'Goto' menu. You may have remapped it. Whilst it isn't a permanent onscreen navigator (like NetBeans for example), it is pretty quick to use.
CMD+R and SHIFT+CMD+R are available on Sublime Text 3 for Mac. CMD+R will browse symbols on the current open file as stated before here, while SHIFT+CMD+R will browse all symbols in all open files if you don't have a ST3 project open, or browse all symbols in all project files if a project is open.
You have to vote here in order to see this functionality implemented in SublimeText :
http://sublimetext.userecho.com/topics/1265-add-a-class-browser/
In the meantime, CTRL+R is the only alternative...