Issues on install package control on sublime text 3 - sublimetext3

I installed sublime text 3 and i need to install package control ..so when i refer this page.
I just confused, what should i follow,
Can anyone help me to guide this docs?
Thanks,

You just have to copy the given code in the sublime text 3 console. (Show Console in the view menu)
It will download and install the package control. (You should see notifications in the console)
Once installed, you'll have access to the package control commands in the command prompt. (You can access it by pressing ctrl + shift+ p)

In build 3126 (released Sept. '16) a menu item (and command palette entry) was introduced to easily install Package Control.
It can be found under tools -> Install Package Control or by looking up Package Control in the command menu (ctrl/cmd + shift + p).

Related

How to open command prompt in Atom editor?

How can I run command prompt in Atom Editor? Do I need to install any package for the same? I could not find any videos or links regarding this issue.
Go to File -> Settings -> Install
Search for package -> platformio-ide-terminal
After installation of this package
Go to Packages tab in a menu bar where you can see all the packages installed
click on platformio-ide-terminal -> New Terminal [Now you will get the terminal window]
There are 2 packages that I use to open a terminal window in Atom. They are 'platformio-ide-terminal' and Termination. Load either one of these and the name will appear under the package menu. Selecting either one will allow you to open a terminal window in bottom third of Atom window.

Export list of installed packages in SublimeText

I am aware that I can see all installed packages in Sublime using Ctrl+Shift+P and selecting Package Control: List Packages.
I have many packages installed (>20) and I need a way to export their names (and ideally also the link to their https://packagecontrol.io/ page) to a text file or similar output.
Can this be done at all?
You can easily get the list of installed packages by looking at Package Control's user preferences file: Preferences -> Package Settings -> Package Control -> Preferences - User and checking the installed_packages value.
Getting the URL as well is a bit more complicated, but can be done for example by executing the following in ST's Python console (View menu -> Show Console):
import os; [(os.path.dirname(file)[len('Packages/'):], sublime.decode_value(sublime.load_resource(file))['url']) for file in sublime.find_resources('package-metadata.json')]
The accepted answer unfortunately didn't work for me.
Then I found that in Windows 10 (at least for ST 3) you can obtain what you want by listing the files contained in
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Installed Packages
But some installed packages might be missing from this list ! Crosscheck your result with the content of the directory
C:\Users\<your_user_name>\AppData\Roaming\Sublime Text 3\Packages
Install Sublime Package Control
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type install package, select command Package Control: Install Package and hit Return/Enter. A list of available packages will be displayed.
From inside Sublime Text, open Package Control's Command Pallet: CTRL SHIFT P (Windows, Linux) or CMD SHIFT P (Mac).
Type PackageSync, select the PackageSync package and hit Return/Enter. The package will be downloaded to the appropriate directory.

Can't find certain package in Package control: Install Package

I can't find this package in Package control. Looks like my list is outdated.
https://github.com/babel/babel-sublime
How can i fix it?
Sublime Text 3083
I had a similar problem with a different package, this is the only result I found when searching so I'll post my answer.
I already had the package installed!
I apparently installed it previously then forgot I had done so. Check your packages list if you can't find one! Command Palette > Package Control: List Packages
Not sure what the issue with Sublime is, but if anyone else gets stuck on this you can just install from Github directly. Works for babel-sublime and should work for other packages.
1) Find the relevant repo (assuming open source)
https://github.com/babel/babel-sublime
2) Clone into your packages folder
On a mac this would be
$ cd /Users/(username)/Library/Application\ Support/Sublime\ Text\ 2/Packages/
$ git clone https://github.com/babel/babel-sublime
And that was it for me - restart Sublime Text and the package is available.
Open Package Control Options(Commad+Shift+P) and add the repository if its not exist.
Open Package Control Again and choose Install package and write the package name which in your case its (babel-sublime) and you should find it.
If you want to install babel-sublime but it is not included in package control it is in GitHub repository, it can be added manually.
Go to Preferences > Package Control
In the command palette, type Package Control: Add Repository
A text box will appear at the bottom, paste the URL to the repository, i.e. https://github.com/username/repo.
Now that you have added the GitHub repository, you can add the package as you would have originally:
Go to Preferences > Package Control
In the Command Palette, type Package Control: Install Package
In the dialog box, type the name of your package, i.e. babel-sublime Auto complete will find if it is present. If that is the case, press enter and wait for it to install, then restart sublime. It will be installed upon restart.
PS: the same way to install any package from GitHub
you can Google sublime plugins to find some really cool ones
I had to add it 2 times, each time closing. Then it finally worked and got all packages. Thats the only solution i found. Some glitch in Sublime.
Heres is info how to install full packages list https://packagecontrol.io/installation
In Sublime Text 3, go to View, Show Console. Paste in the code below and hit Enter.
import urllib.request,os,hashlib; h =
'df21e130d211cfc94d9b0905775a7c0f' +
'1e3d39e33b79698005270310898eea76'; pf = 'Package Control.sublime-
package'; ipp = sublime.installed_packages_path();
urllib.request.install_opener( urllib.request.build_opener(
urllib.request.ProxyHandler()) ); by = urllib.request.urlopen(
'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh =
hashlib.sha256(by).hexdigest(); print('Error validating download (got
%s instead of %s), please try manual install' % (dh, h)) if dh != h
else open(os.path.join( ipp, pf), 'wb' ).write(by)
the solution was found here:
http://www.storybench.org/install-babel-packages-sublime-text-3/
My version of Sublime Text 3 was old. I solved this problem by simply running the command:
sudo apt-get update
which will update sublime after sublime v 3.0, restarted sublime, and all was good.
open command pallette
Package Control: install package -> enter
you search Babel -> enter
good luck

How to run a program in Atom Editor?

I found Atom editor as good free alternative to Sublime text editor. Not able to find a straightforward way to run a program in Atom editor. In my case, I am trying to run a java program. Please let me know if it's possible? If yes, please describe the steps to follow.
I find the Script package useful for this. You can download it here.
Once installed you can run scripts in many languages directly from Atom using cmd-i on Mac or shift-ctrl-b on Windows or Linux.
Click on Packages --> Commmand Palette --> Select Toggle.
Type Install Packages and Themes.
Search for Script and then install it.
Press Command + I to run the code (on Mac)
You can go settings, select packages and type atom-runner there if your browser can't open this link.
To run your code do Alt+R if you're using Windows in Atom.
For C/C++ programs there's very good package gpp-compiler.
Shortcuts:
To compile and run: F5
To debug: F6
If you know how to launch your program from the command line then you can run it from the platformio-ide-terminal package's terminal. See platformio-ide-terminal provides an embedded terminal within the Atom text editor. So you can issue commands, including commands to run your Java program, from within it. To install this package you can use APM with the command:
$ apm install platformio-ide-terminal --no-confirm
Alternatively, you can install it from the command palette with:
Pressing Ctrl+Shift+P. I am assuming this is the appropriate keyboard shortcut for your platform, as you have dealt ith questions about Ubuntu in the past.
Type Install Packages and Themes.
Search for the platformio-ide-terminal.
Install it.
This package in Atom can run scripts.
Atom script package
press Alt+X for the running script.
For running javascript you need to install 'node js'
Also pressing ctrl+shift+i in atom gives developer option like chrome
you can test javascript code side by side in atom editor.
In order to get this working properly on Windows, you need to manually set the path to the JDK (...\jdk1.x.x_xx\bin) in the system environment variables.
You can try to use the runner in atom
Hit Ctrl+R (Alt+R on Win/Linux) to launch the runner for the active window.
Hit Ctrl+Shift+R (Alt+Shift+R on Win/Linux) to run the currently selected text in the active window.
Hit Ctrl+Shift+C to kill a currently running process.
Hit Escape to close the runner window
You can run specific lines of script by highlighting them and clicking shift + ctrl + b
You can also use command line by going to the root folder and writing:
$ node nameOfFile.js

How to install Zen Coding (now called Emmet) with Sublime Text 3

I tried searching on Google but have not found any install instructions. Can someone help me out. I am using Ubuntu 12.04. Thanks!
Install the package manager, then type Command + Shift + P and type "Install", press Enter, type "Emmet" and press Enter again.
A detailed article on
How to Install Emmet In Sublime Text 3
and a video Tutorial on same
Open Sublime Text 3.
Open console by pressing CTRL + ` or going to View > Show Console.
Paste the following code and press Enter.
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
*Wait for a minute and restart your Sublime Text.*
Installing Emmet (Main Part)
After you have successfully installed Package Control, open Command
Palette by pressing CTRL + SHIFT + P or going to Tools > Command
Paletteā€¦
Type install and click on Package Control: Install Package.
After loading type Emmet in the search bar and click on Emmet.
Wait for it to install (and yes this is also a step). Leave your system for 2-3 minutes as it will install some required repositories
also like PyV8. Keep an eye on the Status bar (the light grey bar in
the bottom of your editor which shows the Line and the Column
number).
After your status bar is clean and has nothing except the Line and Column number restart you Sublime.
and Look out..!!! Emmet is installed in your Sublime.
If you have installed the Sublime Text 3.
To enable Emmet follow these steps:
Open the Sublime Text 3
Go to Tool-> Command Palette..
Select Install Package by searching "install".
Again new window opens type "Emmet" and select first one.
That's it new Zen coding( Emmet ) is enable in your Sublime Text 3.

Resources