How to prevent Sublime Text 2 from opening iA Writer .md files? - sublimetext2

Sublime Text 2 on Mountain Lion always makes itself the preferred app to open .md files. I use iA Writer for my programming notes which saves files as .md.
Every time when I right-click "Open As…" and select the "Always with this app" option and then select iA Writer from Applications folder, it reverts back to Sublime Text.
Even when Sublime Text is not even running. I found no options to teach Sublime Text or the OS which files to open with which program.
I need iA writer for my programming notes because of the larger font. It helps me think sharper. So it is programming related. Also when I work in Sublime Text for code I like the clear separation of notes taking and coding.

In Finder, right-click (or Ctrl-click) on a .md file and select the Get Info option. In the window that pops up, select iA Writer from the Open with: dropdown menu, then click the Change All button just below it. Confirm the dialog that pops up, and now all Markdown files should be associated with the correct app. The association may change upon updating Sublime or installing the beta of ST3, but it's easy enough to change back.
The reason your previous action wasn't working was because you were only associating that particular file with iA Writer, not all .md files.

Related

How to open a different tab in same folder using sublime text or visual studio code?

I use sublime text 3 and visual studio code, but i found that if i open a different file in same folder , it does not open a different tab, instead the new tab will replace the old tab. How do I get a file to open in a different tab in same folder ?
I'm not familiar with VSCode, but in Sublime, single clicking a file opens it in a semi-transient view for preview purposes. You can tell this is happening by the file name in the tab being italicized.
The reason for this is to allow you to quickly preview files for editing without having an excessive number of tabs open. So when you single click on another file, the existing preview tab is reused for the new file.
In order to commit the tab to being a "fully opened" file, you can either double click the file to tell Sublime that you want to edit it, or make a modification to the file in the buffer.
This is controlled by the setting preview_on_click, which is turned on by default. If you turn this off, single clicking files will not preview them, so you need to double-click files in order to open them.
In both editors, if you single click a file it remains in a single tab that is re-used by other single-clicked files. If you double click the file, it opens it in a new tab. At a glance, you'll also notice that the "single click tab" title is italicized, while the ones you double clicked are regular text.

Search for files in Sublime Text 2

How do i search for files in Sublime Text 2 inside a project?
I don't want to search the contents of files, just file names.
This should be ridiculously simple but I can't figure out (Google points some answers to the Sublime Text Forum but it is offline right now)
A keyboard shortcut would be amazing.
Press Ctrl+P (or Cmd+P) to open Goto Anything and just start typing the filename you're looking for!
source

How can I modify User Preferences in Sublime Text 2 via a Build System?

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: class navigator or browser side bar

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...

Is there a way to export code to HTML in Eclipse?

I know NetBeans has this feature, but I can't find it in Eclipse. A quick search for plugins was not successful.
Java2Html - Eclipse Plugin:
Convert files:
Select items in the Package Explorer, Navigator or other views and right click to open the context menu. There is a Java2Html menu item that opens the conversion dialog.
Convert text from a text editor:
Right click on an editor and choose the Java2Html context menu item to convert the current selected text.
Adjust preferences:
Colors, tab size, etc. for conversion can be adjusted on the preference pages (Menu "Window" - "Preferences" - "Java" - "Java2Html")...
Hackish way:
On Windows at least, when you do Ctrl-A (Select all), Ctrl+C (Copy) what actually gets copied to the clipboard is formatted text (with all the colors and fonts). Then you can paste (Ctrl-V) it to something that can accept formatted text, say Microsoft Word or even Wordpad and save it to whatever format you wish.
The Copy as HTML eclipse IDE plugin allows us to directly copy our
code as HTML and paste it to our blogs or forums without any
formatting.
Download Copy as HTML eclipse plugin
Steps to install the plugin:
Download the Copy as HTML eclipse plugin
Copy it to the 'dropins' folder of your eclipse installation
If 'dropins' folder is not present then copy it to the 'plugins' folder of your eclipse installation
Restart eclipse IDE
That's it
Steps to Use
Select the code or text to be copied
Select 'Copy as HTML' option or press 'cntrl+shift+3'
Paste it your superb blog
Taken from here:
http://java-sample-program.blogspot.hu/2012/12/copy-as-html-eclipse-plugin.html