Robin Chien
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee
  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ###### tags: `第12屆IT邦幫忙鐵人挑戰賽` `IThome` `Kotlin` `Android` `Mobile Development` # Day 03 | Kotlin 起手式: IDE 怎麼選? 在上一篇簡單介紹了 Kotlin 和 Java 的不同以及他的特色,那這篇就要延伸到基礎語法以及如何使用了! ## IDE 選擇 在 Kotlin 的開發上會有下列幾種 IDE 可以選擇,讀者可以選擇自己順手的 IDE 即可 ![](https://i.imgur.com/3D7GmRZ.png) ### 1. IntelliJ IDEA [IntelliJ IDEA](https://www.jetbrains.com/idea/) 是 Jetbrains 打造給 Java 、 Kotlin 和 Scala 開發者的 IDE,因為需要付費,所以我也沒有是用過,但據說是非常符合 Java 開發者尿性的工具,另外 IntelliJ IDEA 還有 Ktor (Kotlin 網頁開發框架)的 Plugin ,所以在上面能做到用 Koltin 開發 Web 前後端、 API 、 App 等等,可說非常之強大阿~ ### 2. Eclipse [Eclipse](https://www.eclipse.org/downloads/) 是開發 Java 的老牌 IDE ,相信很多人剛開始學 Java 都是從它開始的,在 Android Studio 出來之前, Android App 開發也是使用 Eclipse (我用它刻過一次 UI ,超級崩潰),目前 Eclipse 也有提供 Kotlin plugin 給開發者,具體導入流程在 [Kotlin 的官網](https://kotlinlang.org/docs/tutorials/getting-started-eclipse.html)上有介紹 ### 3. Android Studio [Android Studio](https://developer.android.com/studio) 是 Jetbrains 和 Goolge 合作開發,專門為寫 Android App 的開發者打造的 IDE ,在Android Studio 3.0 之前,開發者如果想用 Kotlin 必須手動處理, 但在 Android Studio 3.0 之後, Kotlin 已經變成內建支援的語言了,在新建專案時便可選擇此專案是否要支援 Kotlin 語法,之後開始寫 App 開發時變會再重新講解。 ### 4. Standalone Compiler 我不確定會有什麼樣的 Scenario 需要開發者用 Commnad line 開發 Kotlin ,所以這邊就提供[安裝 Kotlin 流程](https://kotlinlang.org/docs/tutorials/command-line.html)給有需要的讀者們 --- 上面介紹了一長串不同的 IDE,但如果只是要體驗 Kotlin ,學習基礎 Kotlin 用法,就不會希望有很煩雜、很久的安裝流程,因此除此之外我們還有一個比較快速可以體驗的選擇,就是採用 Online IDE ## Kotlin Playground [Kotlin Playground](https://play.kotlinlang.org/) 是我大 JetBrains 開發的專門給 Kotlin 的 sandbox ,用戶可以很快的得到一個可以開發 Kotlin 的環境,大多數 Kotlin 的語法他都支援,因此這也是我很常會使用的一個實驗工具,可以很快的透過他來印證我的猜想,而不需要在開一個 Project 或是重 Build Project ,節省很多時間。 如果在練習上想要體驗不同 Kotlin Version 帶來的不同, JetBrain 也很貼心的設計了 Run configuration 給開發者去做版本的切換。 另外他還提供了 Share code 的功能,可以分享 sandbox 給其他人,或是將 code 嵌入到網頁中,這在 Kotlin 的一些範例教學也會時常看到喔! ![](https://i.imgur.com/nQlXP4R.png) ## 結語 因為剛開始的範例都會是偏基礎語法,因此讀者們可以先從 Kotlin Playground 使用起,另外想裝 IDE 的讀者可以去 Koltin 官網上依照教學一步步建立,這邊就不在多寫文章去做教學了。 除此之外,因為 Kotlin 1.4 在近期 Release ,所以後面的教學都會以 Version 1.4 為主喔。 ## Reference * https://www.jetbrains.com/idea/ * https://play.kotlinlang.org/

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully