How do i open two files in parallel at Sublime Text 3 Editor? - sublimetext2

I want to open two files (html,js) files for better productivity and i can't use any third party packages at my office. So is there any in built way to open two files in parallel at sublime text 3? Kindly advice.

To open two files side by side in Sublime Text 3 do Ctrl+K and then do Ctrl+↑. To move back to one windowed mode just do Ctrl+K and then do Ctrl+↓.
Here is the Documentation for that feature.

Related

Creating a new project/site in Githubs Atom Editor

I've downloaded Githubs Atom Editor and I can't seem to figure out any way on creating projects.
I currently use Sublime Text 3, I've added some packages to it which allow FTP and I'm able to create Directories and sites as it has a built in Project Manager.
I've been looking over the internet for a while now and can't find any help from the following.
Does Atom have a built in FTP?
How to create projects/sites like in Sublime Text 3?
Does everything sync to your Github?
Apologies is this has been asked or seems irrelevant but I am looking for assistance in using the new Atom Editor.
Out of the box atom does provide some project view if you open (⌘O) a directory instead of a file:
I've recently been trying new editors as well. I have been switching between Atom, Brackets, and Sublime Text 3. They have many similarities, as you probably have noticed. Atom doesn't come with very much out of the box, just like Sublime Text, but just like Sublime Text it's highly extendable using its built in package manager.
Atom's Package Manager is found in the Preferences (⌘,). Then select the Packages tab on the left.
Currently there isn't an ftp package, but chances are it's only a matter of time. If you're using FTP for deployment git provides a much better/safer workflow with not a whole lot of overhead to get set up....But that's another topic I won't dive into here.
There are a couple pretty nice project manager packages that would give you a similar experience to Sublime Text's projects:
As far as git integration goes it's a similar situation to project management. It has a few nice features built in (Open in Github, highlighting files with pending changes, etc...), but there are a few nice packages that can really make Atom's git integrations pretty verbose.
Hope this helps, good luck

Exporting Sublime Text configuration and installed packages

I have spent considerable time to tune up Sublime Text 2 configs. Now I would want to share my configurations (one file) and installed packages list with my friend. What would be the best way to do this? Manually pick related folders in Packages and zip them or something else? Preferably I'd like to create an automated script which could be copy-pasted to my friend and others.
My friend is using Linux. I am using OSX, which may cause some extra problems.
If you are using Package Control, send your friend Package Control.sublime-settings. In fact, the easiest way to transfer settings between machines is to move the User package between machines. This, in combination with package control, makes setting up on a new machine relatively quick and painless. The only issues your friend might have is mismatched key binding or other system specific settings. These files have the notation some_name (platform).extension. Other than that, I wouldn't forsee any issues (unless you are using OS X specific plugins).
Package control has a good doc talking about how to sync Sublime settings and install packages: https://packagecontrol.io/docs/syncing
Using Windows
Open a new Command Prompt and type the following at the command line:
cd "C:\Users\<name>\AppData\Roaming\Sublime Text 3\Installed Packages" dir
Then copy and paste to an editor (e.g. Sublime Text) and filter out the relevant parts. Not great but working.

Library manager for Sublime Text 2

Is there a library manager for Sublime Text 2? I'm looking for something similar to NuGet where I can, for example, load all files for Bootstrap into my current project in a few, quick steps.
I found NetTuts fetch, which is nice, but not very efficient. If I wanted to load dev and prod versions of Bootstrap, I would have to create multiple files and fetch into each of them. Instead, I would like to run a single command to load all of the files into my project.
I found Bower. Here is the plugin for Sublime Text 2.
Similar question: A package manager for web assets

Centralizing Packages folder on Sublime Text 2

Hi I am running 2 copies of sublime text 2. One on a windows box and another on a laptop running ubuntu.
I am wondering if it is possible to move the sublime packages folder to a shared location. I only use one machine at any given time but it would be nice if the packages/snippets etc were consistent across both environments.
Any one had any luck with this?
Thanks,
Sublime Text 2 may hold write lock on the files of the settings files, so sharing files might not work as intended if you are trying to use them from multiple locations simultaneously.
However, it is possible to share settings and on UNIX users do it via symlinks (mklink on Windows). I am pretty sure you cannot set the path of the config files from Sublime itself, so you need to instead do some kind of file-system trickery.
But as the recommended method I'd use some file sharing service like Dropbox which will also automatically keep back-ups from your files in the case you manage to destroy them within Sublime Text 2 accidentally:
http://opensourcehacker.com/2012/05/24/sync-and-back-up-sublime-text-settings-and-plug-ins-using-dropbox-on-linux-and-osx/ (have pointers for OSX, Linux, Windows)
Also I am not sure if there is anything operating system specific in those configs, but I can confirm it works 100% if you are using the same OS.

Run a program in a new window with sublime text 2

I'm programming using Sublime Text 2 and I was wondering if there is a way to run programs in a new window. For a while I was using Geany as my python editor and when I would run a program, the program would start in a window called geany_run_script.sh. Is there a way to acheive what I would like? Thanks.
(If it helps, Im running Linux and programming with Python)
If by window you mean a new tab/buffer then this:
https://github.com/vhyza/exec-in-window
is exactly what you want. You can get it via Package Control.