作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我偶尔会使用带有硬制表符而不是空格的代码。是否有任何 repl 命令指示解释器至少暂时将制表符作为普通空白处理 - 沿着 :paste 行?
最佳答案
确实 :paste
听起来是个不错的选择,但如果你真的想覆盖键绑定(bind),你可以像这样提供你自己的设置文件:
scala -Djline.keybindings=myfile
我从默认的scala jar中查找的文件格式是这样的:
来自 jline.jar
中的文件 scala/tools/jline/keybindings.properties
:
# Keybinding mapping for JLine. The format is:
# [key code]=[logical operation]
# CTRL-A: move to the beginning of the line
1=MOVE_TO_BEG
# CTRL-B: move to the previous character
2=PREV_CHAR
# CTRL-D: close out the input stream
4=EXIT
# CTRL-E: move the cursor to the end of the line
5=MOVE_TO_END
# CTRL-F: move to the next character
6=NEXT_CHAR
# CTRL-G: abort
7=ABORT
# BACKSPACE, CTRL-H: delete the previous character
# 8 is the ASCII code for backspace and therefor
# deleting the previous character
8=DELETE_PREV_CHAR
# TAB, CTRL-I: signal that console completion should be attempted
9=COMPLETE
将命令匹配选项9替换为空字符串。
http://www.scala-sbt.org/release/docs/Howto/interactive.html#change-keybindings
关于scala - 在 Scala Repl 中暂时禁用制表符补全,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22097896/
补: Rest 风格请求处理的的内容补充(1) Rest风格请求:注意事项和细节 客户端是PostMan 可以直接发送Put,delete等方式请求,可不设置Filter 如果哟啊
我是一名优秀的程序员,十分优秀!