ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Project Port

by mawiseman ALL

A Sublime Package that allows you to open other types of projects. i.e. Visual Studio

Details

Installs

  • Total 948
  • Win 629
  • Mac 167
  • Linux 152
Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Project Port

We have all been there. You know the files you need to review, you know you can get there quickly, you know your IDE's performance is going to suck balls!

This package aims to resolve that by allowing you to quickly open projects from other IDE's quickly in Sublime.

To open a Project from another IDE, within Sublime select File > Open File and select your project file. If the project file extension has a Port defined the project will be opened.

Current Project Ports Avaliable

  • Visual Studio: .sln

How to define your own Project Port

You can easily define your own Project Port for this package.

  1. Create a new paython file in the projecttypes folder
  2. Create a class with a unique name (relative to your project file type)
  3. Make sure your class implements: port(projectfile)
  4. Make sure you register you file extension and class at the bottom of your script
  5. Add an import statement to sublime_events.py

Sample Code

class YourCustomPort:    
    def port(projectFilePath):
        #Implement code to get folders to include in your project
        #...

        #Add the folder to collection of folders
        ProjectPortManager.add_folder(follow_symlinks, path, folder_exclude_patterns, file_exclude_patterns)

#Register Port with the system
ProjectPortManager.add_port('.ext', YourCustomPort)