自定义快捷键
![](https://img-my.csdn.net/uploads/201304/05/1365135085_1389.png)
1.查找你想绑定的命令
![](https://img-my.csdn.net/uploads/201304/05/1365135101_6987.png)
2.将光标移动到Binding输入框
![](https://img-my.csdn.net/uploads/201304/05/1365135114_3233.png)
3.按下你想要绑定的键
![](https://img-my.csdn.net/uploads/201304/05/1365135123_1468.png)
4.点击ok
![](https://img-my.csdn.net/uploads/201304/05/1365146337_7718.png)
使用ScrapbookPage运行片段程序
使用ScrapbookPage可以让你运行一段程序并看到解果,在测试中很常用,举个例子:
上面程序中,只想运行一下A中的f方法,可以这么做:
1.建立一个ScrapbookPage
a.File==>New==>ScrapbookPage
![](https://img-my.csdn.net/uploads/201304/05/1365135256_6073.png)
b.在文件中写入要运行的代码
![](https://img-my.csdn.net/uploads/201304/05/1365135266_3146.png)
c.选中代码
![](https://img-my.csdn.net/uploads/201304/05/1365135291_1023.png)
d.右键,execute
![](https://img-my.csdn.net/uploads/201304/05/1365135303_8774.png)
e.控制台就会有结果输出
![](https://img-my.csdn.net/uploads/201304/05/1365135314_5074.png)