Go Playground VSCode Extension
This extension can help those who want to start learning GO
or experiment with golang
without creating projects or even installing the compiler locally.
Launch VS Code Quick Open (Ctrl+P
), paste the following command, and press enter.
ext install ArtsemHutarau.go-playground
Or follow the marketplace link for more info.
This extension contributes the following settings:
go-playground.play
: activates extension (call the currently open .go file to play if provided)go-playground.changeSanboxDir
: changes path of the sandboxes directorygo-playground.refreshSanboxDir
: refreshes sandboxes directorygo-playground.newSandbox
: creates new sandboxgo-playground.newToy
: creates new toygo-playground.newEnv
: creates new environmentgo-playground.cancelRunning
: cancel running playground command
Environment - the command (or list of commands) to launch the sandbox. May contain any OS-specific directives.
example> go run main.go
Sandox - in the current version of the extension, it's just a file with
.go
extension.
Sandoxes Directory - directory that contains the sanbox files (with
.go
extension). Used to store all sandbox files in one place.
Toy - predefined
go
-code to play with.
Notebook - consists of a sequence of cells and their outputs. The cells of a notebook can be either Markdown cells or code cells, and are rendered within the core of VS Code.
- Added
Cancel running
button on StatusBar to cancel current running operation. - Adeed notebooks support for running go code from the
*.gobook
files. See example file hello-world.gobook
- Added
Wiki
view.
- Added
Environments
view. - Added possibility to define
custom
toys. - Fixed bugs.
- Fixed bug with
undefined
file name for a new created sandbox - Added extension icon
- Added async output for local runned sandboxes
- Fixed bug with
undefined
initial value for a new created sandbox - Sandbox directory settings are now saved in the
global
target space - Added commands description
- Initial release