A new package which allow you to execute or build part of your code.
This package has only one command “BuildParts: Build(or execute) the selected code”
When you run this command, it will build the code that you have selected using the build system selected by Sublime Text. If you have selected nothing, it will build the whole file.
BuildParts default keybindings are “ctrl+b” (for Windows and Linux) and “super+b” (for Mac). It’s the same as the default keybinding for building your code. If you want to invoke the build system for the whole file. Just select nothing and press “ctrl+b”.
Example:
Suppose you have a document named “testing.rb”
Puts("Hello")
Puts("World")
Puts("Everyone")
If you select nothing and press “ctrl+b”, Sublime Text will build the whole file and the build output console will show:
Hello
World
Everyone
Suppose you select the first 2 lines, and press “ctrl+b”, Sublime Text will only build the current selected parts and the build output console will show:
Hello
World
As BuildPart utilizes the build system in Sublime Text, it supports any language the Sublime Text can build. It also work with custom build systems that are install via packages.