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

  • 1.0.3
  • github.​com
  • github.​com
  • 10 years ago
  • 27 minutes ago
  • 10 years ago

Installs

  • Total 934
  • Win 624
  • Mac 160
  • Linux 150
Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6
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 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 1 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 1 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

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)