Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.42 KB

README-yasnippets-java-mode.txt

File metadata and controls

58 lines (39 loc) · 1.42 KB

Java YASnippets

Overview

A Java snippet is a frequently used code template which can be inserted into a code you are typing by pressing the TAB key.

Insert Snippet…

Comments

[fixme] Add // FIXME

# name: Add // FIXME
# --
// FIXME: `(format-time-string "%Y-%m-%d")` ${1:todo} $0

[todo] Add // TODO

# name: Add // TODO
# --
// TODO: `(format-time-string "%Y-%m-%d")` ${1:todo} $0

Others

[fbc] findViewById with cast

[foreach] Create a foreach loop

[fori] Create iteration loop

[gone]

[ifn]

[inn]

[logm] Log method name and its arguments

android.util.Log.d(TAG, "archiveTable() called with: " + "context = [" + context + "], table_name = [" + table_name + "], wo_id = [" + wo_id + "], wr_id = [" + wr_id + "]");