How to I add 'File-> Open Folder' to the Sublime Text 2 menu? - sublimetext2

I'm trying to diff two files with Sublime Text 2. Some answers I've seen on this forum recommend using the 'File->Open Folder' menu option, but it's not appearing on my File-> menu. Not even greyed out, just not there. I have looked into Preferences->Default Settings and there does not seem to be an open folder command option that I can add to my User Settings.

Why not to use Sublime Text 3? It's stable now.
Btw, you just have to do : File > Open... or CMD + oand select your folder.

Related

Sublime Text - File tabs has gone

this question seems to be silly but I unfortunatelly used some shortcut in Sublime Text 3 and now all open files don't have tabs.
Look on the right above DOCTYPE html
Do you know how to revert tabs?

When editing HTML in Sublime Text autocomplete <img> path

Does sublime text3 has file path prompt?
for example :
<img> tag
src="img/apple/pic.jpg"
after img/ it can automatic prompt
Sublime Text does not come with these features preinstalled. However, it's very likely that a plugin such as this one (I haven't tried it) will solve your issue. If it's an image you use like all the time, you can make it a snippet if you'd like so you could type apic for example, press tab, and it would expand. Otherwise, try the plugin.

Highlighting works incorrectly with media queries in sublime text 2

Whenever I create an #media in CSS and add tags behind it the first tag doesn't get highlighted.
Is there any known way to fix this problem?
I don't have that problem so you could look into another theme. I also tested the current theme you have which did not cause the same problem.
You can update your ST2 or look into another theme.
Here are some great themes,
Piatto
Tomorrow color scheme
Enlightened color scheme
If you have not setup your ST2's Package Control then here is a great website to get it started.
Here is another Package Control Link from Sublime text. This site will always be up to date and includes info for both Sublime Text 2 and Sublime Text 3.
Hit "Control + `" in sublime text and then add the following code,
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
Next just hit control + shift + p then type "install" to acces packages.

How to show the full file path in PHPStorm?

I'm new to PhpStorm and wondered if it's possible to show the full file path for an open file without hovering the mouse over the file tab?
I can only find this; http://www.jetbrains.com/phpstorm/webhelp/navigating-to-file-path.html
In Eclipse based IDEs the current open file path appears in the title bar.
The top bar should show you where your file is located:
Solution
There is now an option to do this in the editor settings labeled "Always show full path in window header"
Settings/Preferences | Appearance and Behavior | Appearance | UI Options
Documentation
Always show full path in window header
Show the full path to the project and to the current file in the main
window header. When disabled, the header will show only the name of
the project and file.
Reference: https://www.jetbrains.com/help/idea/settings-appearance.html#ui
Note: Another useful setting for those looking for visibility of file paths is "Show full path on mouse hover". This is found under ( Settings/Preferences | Editor | General | Editor Tabs )
Unfortunatly the only option you have is for it to show the path for non-unique filenames.
View > Appearance > check 'Navigation Bar'
You can also see the path and navigate the files using the Project tab (ALT + 1).
At least from the current version of any JetBrains product:
For MacOS you can do shift+option+cmd+C - this will copy full path+line.
A plugin called Tabdir seems to do this reasonably well. From the plugin page:
... this plugin will allow you to have directory names added to tab labels. It only shows path differences so if you have "blog/controllers/index" and "news/controllers/index" it will add either [blog] or [news].
The plugin doesn't appear to have been updated since 2012, but is working on my Webstorm 2021.1.2 (screenshot below). When you have a large number of tabs open, an albeit unique index tab isn't particularly helpful...

Unable to create a snippet in Sublime Text 2

I am trying to create a HTML 5 document snippet in Sublime Text 2. The code is shared below. I have saved the file as html5.sublime-snippet in the Sublime Text 2/Package/user directory on windows, yet when I type html5 and press tab nothing happens. I am also unable to find it when searching the snippets.
Code link https://gist.github.com/hchouhan/5352597
ok figured it out. scope should be <scope>text.html</scope> and not source.html.