📄 osxopenhack.java
字号:
import java.io.*;
public class OSXOpenHack {
public static void main(String[] args) throws Exception {
Runtime rt = Runtime.getRuntime();
//rt.exec("open notes.txt");
//rt.exec("open .");
//rt.exec("open http://www.yahoo.com/");
//String cmd = "open -a Microsoft Word notes.txt";
/*
String[] cmd = {
"open",
"-a",
"Microsoft Word",
"notes.txt"
};
for(int i=0; i<cmd.length; i++) {
System.out.println(cmd[i]);
}
rt.exec(cmd);
*/
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -