Giter Site home page Giter Site logo

研发工具和技巧 about kotlin-tutorials HOT 10 OPEN

bennyhuo avatar bennyhuo commented on June 28, 2024
研发工具和技巧

from kotlin-tutorials.

Comments (10)

xiazunyang avatar xiazunyang commented on June 28, 2024 3

不管是写java还是kotlin,可以先new或调用方法,在后面.var(kotlin还支持.val)回车就能创建对象或接收返回结果,这对于经常在这两种语言之间切换的程序员来讲,可以大大减少编程习惯带来的阵痛。

from kotlin-tutorials.

yasuofenglei avatar yasuofenglei commented on June 28, 2024 1

分享一个小技巧 Ctrl+C Ctrl+V

from kotlin-tutorials.

MaxzMeng avatar MaxzMeng commented on June 28, 2024 1

分享一个插件SonarLint 可以对你的Java/Kotlin以及其他的代码进行扫描并发现代码写的不规范/有漏洞的地方,类似于阿里的那个扫描插件但是比起阿里的更加强大 https://plugins.jetbrains.com/plugin/7973-sonarlint

from kotlin-tutorials.

MaxzMeng avatar MaxzMeng commented on June 28, 2024 1

分享个快捷键,在Mac上是command+[ command+] 可以快速切换到光标前/后一次到达的地方,在追代码的时候很方便

from kotlin-tutorials.

chen2tu avatar chen2tu commented on June 28, 2024 1

经常写业务代码的话,live templates 使用熟练了爽歪歪. 官方默认就支持了 Android/kotlin/flutter 常用的模板代码,如果还不够,加点自己的模板代码也很爽

from kotlin-tutorials.

xiazunyang avatar xiazunyang commented on June 28, 2024

在Android Studio上安装一个ADB Wi-Fi插件,就可以脱离数据线进行真机调试了。前提是手机必需和电脑在同一个网段之内。插件主页:https://plugins.jetbrains.com/plugin/14969-adb-wi-fi

from kotlin-tutorials.

Richyeoh avatar Richyeoh commented on June 28, 2024

Cmd+C, Cmd+V, OK搞定。

from kotlin-tutorials.

bennyhuo avatar bennyhuo commented on June 28, 2024

分享一个插件SonarLint 可以对你的Java/Kotlin以及其他的代码进行扫描并发现代码写的不规范/有漏洞的地方,类似于阿里的那个扫描插件但是比起阿里的更加强大 https://plugins.jetbrains.com/plugin/7973-sonarlint

这个插件还真听之前公司的质量专家提起过

from kotlin-tutorials.

bennyhuo avatar bennyhuo commented on June 28, 2024

不管是写java还是kotlin,可以先new或调用方法,在后面.var(kotlin还支持.val)回车就能创建对象或接收返回结果,这对于经常在这两种语言之间切换的程序员来讲,可以大大减少编程习惯带来的阵痛。

这个应该是 IDE 提供的 postfix,也可以做一期,不过这个东西可定制的空间比较小

from kotlin-tutorials.

bennyhuo avatar bennyhuo commented on June 28, 2024

常用快捷键:

  1. 多行编辑
  2. 选中下一个单词(扩展选择)、选中全部
  3. 返回、前进,匹配括号
  4. 交换函数、类顺序
  5. 查看类结构
  6. 查看子类实现
  7. 查找引用、查找调用结构
  8. 在侧边栏定位当前文件
  9. 提交、拉取代码

from kotlin-tutorials.

Related Issues (20)

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.