Show Menu
Cheatography

CIDER (in Spacemacs) Cheat Sheet by

CIDER keystrokes in Spacemacs

Refact­oring (SPC m except one item)

Key Binding
Descri­ption
Alt Keys
r ?
describe refact­oring
r a d
add declar­ation
r a i
add import to ns
r a m
add missing libspec
r a p
add project dependency
r a r
add require to ns
r a u
add use to ns
r c (
convert coll to list
~SPC m r c ‘~
convert coll to quoted list
r c {
convert coll to map
r c #
convert coll to set
r c [
convert coll to vector
r c i
cycle if
r c n
clean ns
r c p
cycle privacy
r d k
destru­cture keys
r e c
extract constant
r e d
extract definition
r e f
extract function
r e l
expand let
r f u
find usages
r f e
create fn from example
r h d
hotload dependency
r i l
introduce let
r i s
inline symbol
r m f
move form
r m l
move to let
r p c
project clean
r p f
promote function
r r d
remove debug fns
r r f
rename file
r r l
remove let
r r r
remove unused requires
r r s
rename symbol
r r u
replace use
r s n
sort ns
r s p
sort project depend­encies
r s r
stop referring
r s c
show changelog
r t f
thread first all
r t h
thread
r t l
thread last all
r u a
unwind all
r u p
update project depend­encies
r u w
unwind

REPL (SPC m except the first list item)

Key Binding
Descri­ption
Alt Keys
~SPC m ,~
handle shortcut (cider­-re­pl-­han­dle­-sh­ortcut)
s b
send and eval buffer in REPL
,se
s B
send and eval buffer and switch to REPL in insert state
s c
connect to REPL (cider­-co­nnect) or clear repl buffer (cider­-re­pl-­cle­ar-­buffer)
s C
clear REPL (cider­-fi­nd-­and­-cl­ear­-re­pl-­output)
s e
send and eval last sexp in REPL
s E
send and eval last sexp and switch to REPL in insert state
s f
send and eval function in REPL
s F
send and eval function and switch to REPL in insert state
s i
start REPL (cider­-ja­ck-in)
, '
s I
start clojur­escript REPL (cider­-ja­ck-­in-­clo­jur­esc­ript)
m s n
send and eval ns form in REPL
m s N
send and eval ns form and switch to REPL in insert state
m s q
kill REPL (cider­-quit)
s o
switch to other repl instance (cider­-re­pl-­swi­tch­-to­-other)
s r
send and eval region in REPL
s R
send and eval region and switch to REPL in insert state
s s
switch to REPL or jump to last file or last clj buffer from repl (cider­-repl)

Evaluation (SPC m)

Key Binding
Descri­ption
Alt Keys
e b
eval buffer
e e
eval last sexp
e f
eval function at point
e r
eval region
e m
cider macroe­xpand 1
e M
cider macroe­xpand all
e p
print last sexp (clojure intera­ction mode only)
e w
eval last sexp and replace with result

Debugging (SPC m)

d b
instrument expression at point
d e
display last stacktrace
d r
reload namespaces
d v
inspect expression at point

Reform­atting (SPC m)

Key Binding
Descri­ption
Alt Keys
f l
realign current form
f b -OR- =
reformat current buffer

Toggles (SPC m)

Key Binding
Descri­ption
Alt Keys
T e
toggle englighten mode
T f
toggle REPL font-l­ocking
T e
toggle cider-­enl­igh­ten­-mode
T p
toggle REPL pretty­-pr­inting
T i
toggle indent­ation style
T t
toggle auto test mode

Docume­ntation (SPC m)

Key Binding
Descri­ption
Alt Keys
h a
cider apropos
h g
cider grimoire
h h
cider doc
h j
cider javadoc
h n
cider browse ns

Goto (SPC m)

Key Binding
Descri­ption
Alt Keys
g b
go back
g C
browse classpath
g g
goto var
g e
goto error
g r
goto resource
g n
browse namespaces
g N
browse all namespaces

Tests (SPC m)

Key Binding
Descri­ption
Alt Keys
t a
run all tests in namespace
t r
re-run test failures for namespace
t t
run test at point

stackt­rac­e-mode

Key Binding
Descri­ption
Alt Keys
C-j
next cause
C-k
previous cause
TAB
cycle current cause
0
cycle all causes
1
cycle cause 1
2
cycle cause 2
3
cycle cause 3
4
cycle cause 4
5
cycle cause 5
a
toggle all
c
toggle clj
d
toggle duplicates
J
toggle java
r
toggle repl
T
toggle tooling

inspec­tor­-mode

Key Binding
Descri­ption
TAB
next inspec­table object
Shift-TAB
previous inspec­table object
RET
inspect object
L
pop to the parent object
n
next page in paginated view
N
previous page in paginated view
r
refresh
s
set a new page size

test-r­epo­rt-mode

Key Binding
Descri­ption
C-j
next result
C-k
previous result
RET
jump to test
d
ediff test result
e
show stacktrace
r
rerun failed tests
t
run test
T
run tests
  

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          Spacemacs (+Clojure) Keyboard Shortcuts