Is there a spotlight-like search in sublime text? - sublimetext2

Is there a way to bring up a search box in Sublime Text that you can start typing in possible commands to see what you have installed, and what it might be mapped to? Kind of like what OSX has?

Command Palette (hat tip to Tommi)
Ctrl-Shift-P (Windows)
Cmd-Alt-P (OSX)

Related

How to config PSR coding standards in Sublime Text2 for PHP

I have installed Sublime Text2. I want auto formatting php code to PSR Standards. Can anyone please help me how to configure in Sublime Text2
I just yesterday installed one plugin that you could use for PSR-1 and PSR-2.
Link that I found for this is:
sublimetext-codeformatter
Install it in Sublime Text 3 via console and after that you can use from Command Pallete [CTRL + P windows (default keyboard shortcut)] and type format and choose Codeformatter: Format code and this will format your code. You can see also the options for PHP and adapt them as you want, see 2nd image.
Default PHP settings:
I also adjusted my own keyboard shortcut in Preferences -> Keybindings
{ "keys": ["ctrl+alt+l"], "command": "code_formatter"}
If you need something more, tag me below in comments and I'll gladly reply back.
I believe that to achive what you are looking for, there are several steps included:
1) Download and install Sublime PHPCS
2) Configure according php packages you intend to use (Available: PHP_CodeSniffer, PHP Mess Detector, PHP CS Fixer, Scheck and PHP Code Beautifier)
3) Lastly you will need to configure the plugin inside of sublime text.
According to this link here, you can configure it to comply with PSR-2 standard.
Hope this helps!

Sublime Text 2 - Jump to a specific word

I am using Sublime Text and use the Cmd+F search tool very often. However everytime I use it, it highlight the word I am looking work and I then have to click on it to start typing there.
What is the shortcut to directly jump to the word I am looking for?
Many thanks
I'm assuming that as you said CMD + F rather than CTRL + F you are using the OSX version of Sublime Text.
The Windows / Linux shortcut for Goto word in current file is CTRL + ;
But if you look at the corresponding list for OSX shortcuts that one is missing.
(I am currently on a Windows machine so I can't test the lack of an OSX shortcut)

Set syntax for a specific file name in Sublime Text 2/3

I have a program that uses a file called user.cfg to get its user defined configuration settings. The odd thing is that they chose the syntax for this file to be Tcl (it's not odd that it is Tcl, it's odd they chose the .cfg extension instead of .tcl). So, when I open this file in Sublime Text, it doesn't know what syntax highlighting scheme to choose.
What I would like to do is set the syntax highlighting for user.cfg to Tcl, but not all .cfg files to Tcl.
I have seen this question which is very similar to mine, except in that case the special file name had no extension so Sublime Text knew to assign Ruby highlighting to only that one file. Unfortunately, I have an extension so the solution given there will not work for me.
Is there any known way to get Sublime Text base a highlighting scheme on the full filename?
Take a look at the ApplySyntax plugin.
The previous answer is completely true; however, I thought it would be better to have it here all in one place rather than going on another webpage to find the list of procedure to apply it
Sublime text 3
This is found here
Ensure Package Control is installed. Instructions are found here.
In Sublime Text, press Ctrl+Shift+P (Win, Linux) or Cmd+Shift+P (macOS) to bring up the quick panel and start typing Package Control: Install Package.
Select the command and it will show a list of installable plugins.
Start typing ApplySyntax; when you see it, select it.
Restart to be sure everything is loaded proper.
Enjoy!

How to convert Coda 2 clips to Sublime Text snippets?

I want to switch from Coda 2 to Sublime Text 2. The only reason I'm stuck in Coda 2 is my long collection of clips of my own.
Any idea on how to convert the clips from Coda to snippets for Sublime Text?
There is an OSX tool called clips2snippets that will help converting your Coda 2 clips into Sublime Text snippets.
Once you have it installed, just run:
clips2snippets gen HTML.clips
Replace HTML.clips with your current clips.
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory
Run this in terminal and clip2snippets will be installed without any error:
sudo gem install clips2snippets

SublimeText - Few commands missing from command palette

I was trying some plugins on my Sublime Text yesterday and today I noticed that some commands were missing form my command palette window, namely:
New file into view (Not "new view into file", that one is still there)
Open in Browser as Testing Server(maybe the word "server" here is wrong)
Open in Browser as Development Server(maybe the word "server" here is wrong)
These three were really helpful to me, How can i get them back?
sublime text menu is a json PATH_TO_SUBLIME\Data\Packages\Default\Main.sublime-menu you can edit it or replace
These commands are added by a package called SideBarEnhancements. Install this package and you will get these commands back.
SideBarEnhancements on GitHub