Sublime Text 2 - No 'install' option for plugins - sublimetext2

After pressing Press Shift + Command + P to bring up the text input, when I type “install” nothing is actually returned in the list of options.
I believe that when I type "install" this should bring up the something similar to a “Package Control: Install Package” option
I cannot install plugins due to this, and was hoping for some help.

Package Control must be separate installed first. Instructions are here:
http://wbond.net/sublime_packages/package_control/installation

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!

Is there a command for formatting HTML in the Atom editor?

I would like to format my HTML with a command, as I do in Visual Studio, using Ctrl+K+D. Is this possible in Atom? If not, are there other options?
Atom does not have a built-in command for formatting html. However, you can install the atom-beautify package to get this behavior.
Press CTRL + SHFT + P to bring up the command palette (CMD + SHFT + P on a Mac).
Type Install Packages to bring up the package manager.
Type beautify into the search box.
Choose atom-beautify or one of the other packages and click Install.
Now you can use the default keybinding for atom-beautify CTRL + ALT + B to beautify your HTML (CTRL + OPTION + B on a Mac).
There are a few packages for prettifying HTML. You can find them by searching the Atom package archive:
Navigate to the Atom site
Click the Packages link
Enter "prettify" in the search box
Or just go to this link: https://atom.io/packages/search?q=prettify
Once you've selected a package that does what you want you can install it by using the command: apm install [package name] from the command line or install it using the interface in Preferences.
When the package is installed, follow its instructions for how to activate its capabilities.
https://github.com/Glavin001/atom-beautify
Includes many different languages, html too..
You can add atom beauty package for formatting text in atom..
file --> setting --> Install
then you type atom-beautify in search area.
then click Package button..
select atom beuty and install it.
next you can format your text using (Alt + ctrl + b)
or
right click and select beautify editor contents
Go to "Packages" in atom editor.
Then in "Packages" view choose "Settings View".
Choose "Install Packages/Themes".
Search for "Atom Beautify" and install it.
Not Just HTML, Using atom-beautify - Package for Atom, you can format code for HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more) in Atom within a matter of seconds.
To Install the atom-beautify package :
Open Atom Editor.
Press Ctrl+Shift+P (Cmd+Shift+P on mac), this will open the atom Command Palette.
Search and click on Install Packages & Themes. A Install Package window comes up.
Search for Beautify package, you will see a lot of beautify packages. Install any. I will recommend for atom-beautify.
Now Restart atom and TADA! now you are ready for quick formatting.
To Format text Using atom-beautify :
Go to the file you want to format.
Hit Ctrl+Alt+B (Ctrl+Option+B on mac).
Your file is formatted in seconds.

Why doesn’t this hotkey configuration for Sublime Text work?

I have configured Ctrl+B to open a file in my browser, but when I press Ctrl+B when the editor is focused on some HTML page, it doesn’t work. Why not?
more details:
what makes me confused is that this ctrl+b works if it is combined to other command such as close, but why not openInBrowser command, so does st2 support this command, how to know whether it support this command or not?
Edit 1:
you may find openInBrowser command in this link http://www.sublimetext.com/docs/commands
Edit 2
#MattDMo what is the corresponding name of command then, i cannot find them in its official document http://www.sublimetext.com/docs/2/
The command you are looking for is open_in_browser, not openInBrowser (which is an old Sublime Text 1 command). So, your keymapping should work with that. However, if you weren't already aware, CtrlB is already mapped to the Build command, used for running build systems. It's not a very good idea to overwrite built-in commands, especially one as important as this one, so I'd suggest changing your keybinding to:
{ "keys": ["ctrl+alt+b"], "command": "open_in_browser" }
This isn't in use by any of the default Sublime commands, although some plugins may use it.

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!

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