2019년 6월 27일 목요일

defold Visual Studio Code file Association Settings



defold Visual Studio Code file Association Settings

file->preference->settings->files

All delete after add this block

 {
      {
        "*.script": "lua",
        "*.gui_script": "lua",
        "*.render_script": "lua"
      }

}

deepin 15.10 Visual studio code crash open then a open folder



I installed Visual studio code from the Deepin Store and since then, every time I'm opening a folder, it open with visual studio code. I'm new with Deepin, where can I change this ? I looked up in the default application settings but I've not seen any setting about folders.


this is hidden Directory

/home/.config/mineappls.list
this file add this

 inode/directory = dde-file-manager.desktop;code.desktop



2019년 6월 25일 화요일

kotlin array swap,extends



array swap(어레이 바꾸기)

fun MutableList.swap(index1 : Int, index2 : Int) {
val tmp = this[index1]
this[index1] = this[index2]
this[index2] = tmp
}


array extends(어레이 크기 확장)

    fun foo(old: Array,NEW_STRING:String): Array {
        val result = old.copyOf(old.size + 1)
        result[old.size] = NEW_STRING
        return result


    }