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
  • 38 minutes ago
  • 10 years ago

Installs

  • Total 938
  • Win 626
  • Mac 161
  • Linux 151
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13
Windows 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
Mac 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
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 0 0 0 0 0 0 0 0 0 0 1 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)