Coder Social home page Coder Social logo

kotlin-vscode's Introduction

kotlin-vscode

Compile & Run Kotlin using Visual Studio Code

Prequisites

  1. Kotlin (Command Line) & VS Code are already installed on your system.
  2. Enviornment Variable for Kotlin Compiler is set.

Installation

  1. Open Terminal & navigate to your project folder and execute following command. git clone https://github.com/pavittarx/kotlin-vscode.git && xcopy /E kotlin-vscode && rm -rf kotlin-vscode
  2. If you want Keyboard Shortcuts, Copy & Paste content or 'keybindings' file provided to your keybindings.json File > Prefrences > Keyboard Shortcuts > Open & edit keybindings.json

Compiling & Running Kotlin Code

If Keybindins are not set.

  1. Open Command Palette (F1 or Ctrl+Shift+K)
  2. Search for 'Tasks:Run Build Tasks' (Ctrl+Shift+B)
  3. Choose an option (Compile/Run/Compile+Run) from the list provided.

If Keybindings are set

F9 - Compile+Run Kotlin Code

F10 - Compile Kotlin Code

F11 - Run Kotlin Application Binary

F12 - Lists the Available Tasks (same as Ctrl+Shift+B)

Note

  1. The following only works on Windows Systems as of this moment.
  2. A test file 'hello.kt' is compiled as of this moment, you can edit kotlin/compile.cmd & change it to your own file.
  3. The compilerun.cmd must be edited to match your kotlin (.kt) file if you use Compile+Run

License: MIT

Authored by: pavittarx

kotlin-vscode's People

Contributors

pavittarx avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.