CodeMaster Use help
CodeMaster implements the entire process of writing code on a mobile device and then passing it to the server to run.
1. For the first use, please click the button in the upper left corner, you will see "Home", "Files", "DB", "SFTP", "Transfer", "SSH" buttons, click the button in the upper right
corner of the "Home" , You can create new files (create various code files, such as ViewController.h), create new folders, import files (import files from icloud and other
places, support multiple selection), WiFi transfer files (On/Off) (transfer files from a computer or any other mobile phone) Go to the "Home"), paste, move. Long press a
file or folder in the "Home" to rename, move, copy, upload (SFTP) the file or folder, and click the file or folder to browse the file. Please note that copying or pasting files
in "Home" is only useful in "Files".
2. The "Files" panel can conveniently manage files in other apps or files in icloud. Please note that copying or pasting files in Files is only useful in "Files".
3. The "Database" panel stores your edited code. If you want the code to be saved in the database, please click "SaveToDB" on the edited file to save the edited content to
the local database. If you click "SaveToFile", the edited file will overwrite the source file.
4. The "SFTP" panel allows you to browse the contents of the remote server. Before using SFTP, please click the operation button in the upper right corner to link to the
server first. Please note that for security reasons, "SFTP" only supports content browsing or viewing after downloading. If you need to update the file content, please
check the use of "Transfer". If you need to delete the remote server content, please log in to the "SSH" console and use the command to delete. If you need to download
a file, please browse to the file, click and query the "download" button, click download to download to the ip address directory corresponding to the "Home", and you can
edit and update to the server.
5. The "Transfer" panel helps you transfer files to a remote server. To transfer files to the server, please select the file on the panel, then long press the file, and select
"Upload" from the pop-up menu. Uploading files does not require you to input manually Local or remote file path. If you want to change the upload path, you only need
to browse to the directory where the files are stored remotely, browse to the file to be uploaded locally, and click "Upload" again to change the upload path. Please note
that if the remote file exists, the uploaded file will overwrite the remote file. Please link to the remote server before uploading.
6. The "SSH" panel helps you use server-side commands (such as ll commands) after logging in to the server. To log in to the server, click the button in the upper right
corner to link to the server. The "BG" button sets the background color, the "TC" button sets the text color, the "CMD" button displays the recent commands you entered,
and the "- +" button zooms the text.
7. In the editing area, click the "M" button in the middle on the right to open various editing commands, and click to execute the corresponding operation. The keyboard
extension will appear in the pop-up place of the screenshot. You can turn it off in the settings area as needed.
8. Click the button in the upper right corner to set various attributes. If you have other usage problems, please click the "Feedback" button to give us feedback.
FAQ
Q: How do I choose code highlighting
A: No manual selection is required. The editor will automatically match the highlighting scheme according to your code.
Q: How do I customize the code hints
A: Please click "Automatic Code Prompt" in the setting area and enter the code prompt you customized first. The editor will automatically perform word segmentation
matching, and display an automatic prompt when you enter the code.
Q: How to zoom out and search the code?
A: Please click the "M" button on the main screen to find the corresponding button operation
Q: How to customize the operation menu
A: Please click "Customize Editor Menu" in the setting area, tick the frequently used menus you need to use, and then click "Save"
Q: How to sort the menu
A: Please click the "M" button on the main screen, long press a menu item in the pop-up menu, and drag it to realize the menu sorting.
Q: How to save the edited file but not overwrite the source file
A: Please click the "SaveToDB" button after editing
Q: Which languages are supported for highlighting
A: The following are the supported languages
APL, ASN.1, Asteriskdialplan, Brainfuck, C, C++, C#, Ceylon, Clojure, ClosureStylesheets (GSS), CMake, COBOL, CoffeeScript, CommonLisp, Crystal, CSS, Cypher,
Cython, D, Dart, Django (templatinglanguage), Dockerfile, diff, DTD, Dylan, EBNF, ECL, Eiffel, Elixir, Elm, Erlang, Factor, FCL, Forth, Fortran, F#, Gas (AT&T-style
assembly), Gherkin, Go, Groovy, HAML, Handlebars, Haskell (Literate ), Haxe, HTML embedded (JSP, ASP.NET), HTML mixed-mode, HTTP, IDL, Java, JavaScript (JSX),
Jinja2, Julia, Kotlin, LESS, LiveScript, Lua, Markdown (GitHub-flavour), Mathematica, mbox , mIRC, Modelica, MscGen, MUMPS, Nginx, NSIS, N-Triples/N-Quads,
ObjectiveC, OCaml, Octave (MATLAB), Oz, Pascal, PEG.js, Perl, PGP (ASCIIarmor), PHP, PigLatin, PowerShell
,Propertiesfiles,ProtoBuf,Pug,Puppet,Python,Q,R,RPM,reStructuredText,Ruby,Rust,SAS,Sass,
Spreadsheet,Scala,Scheme,SCSS,Shell,Sieve,Slim,Smalltalk,Smarty,Solr,Soy,Stylus , SQL (severaldialects), SPARQL, Squirrel, Swift, sTeX, LaTeX, Tcl, Textile, Tiddlywiki,
Tikiwiki, TOML, Tornado (templatinglanguage), troff (formanpages), TTCN, TTCNConfiguration, Turtle, Twig, VB.NET, VBScript, Velocity, Verilog/SystemVerilog, VHDL,
Vue.jsapp, WebIDL, XML/HTML, XQuery, Yacas, YAML, YAMLfrontmatter, Z80
Q: How to support the code display from right to left (such as Arabic)
A: Please turn on the "Bi-directional Text" function in the setting area
Q: How to support Sublime
A: Please turn on the "Support Sublime" function in the setting area. Please note that turning on this function will override other shortcut keys. If you don't need an
external keyboard, please do not turn on this function. Currently, all functions of Subline are not supported. Please use it with caution ,Subline shortcut key mapping
function, please see below
1. "Cmd-Left":"goLineStartSmart"
2. "Shift-Tab":"indentLess"
3. "Shift-Ctrl-K":"deleteLine"
4. "Alt-Q":"wrapLines"
5. "Ctrl-Left":"goSubwordLeft"
6. "Ctrl-Right":"goSubwordRight"
7. "Ctrl-Alt-Up":"scrollLineUp"
8. "Ctrl-Alt-Down":"scrollLineDown"
9. "Cmd-L":"selectLine"
10. "Shift-Cmd-L":"splitSelectionByLine"
11. "Esc":"singleSelectionTop"
12. "Cmd-Enter":"insertLineAfter"
13. "Shift-Cmd-Enter":"insertLineBefore"
14. "Cmd-D":"selectNextOccurrence"
15. "Shift-Cmd-Space":"selectScope"
16. "Shift-Cmd-M":"selectBetweenBrackets"
17. "Cmd-M":"goToBracket"
18. "Cmd-Ctrl-Up":"swapLineUp"
19. "Cmd-Ctrl-Down":"swapLineDown"
20. "Cmd-/":"toggleCommentIndented"
21. "Cmd-J":"joinLines"
22. "Shift-Cmd-D":"duplicateLine"
23. "F5":"sortLines"
24. "Cmd-F5":"sortLinesInsensitive"
25. "F2":"nextBookmark"
26. "Shift-F2":"prevBookmark"
27. "Cmd-F2":"toggleBookmark"
28. "Shift-Cmd-F2":"clearBookmarks"
29. "Alt-F2":"selectBookmarks"
30. "Backspace":"smartBackspace"
31. "Cmd-K Cmd-D":"skipAndSelectNextOccurrence"
32. "Cmd-K Cmd-K":"delLineRight"
33. "Cmd-K Cmd-U":"upcaseAtCursor"
34. "Cmd-K Cmd-L":"downcaseAtCursor"
35. "Cmd-K Cmd-Space":"setSublimeMark"
36. "Cmd-K Cmd-A":"selectToSublimeMark"
37. "Cmd-K Cmd-W":"deleteToSublimeMark"
38. "Cmd-K Cmd-X":"swapWithSublimeMark"
39. "Cmd-K Cmd-Y":"sublimeYank"
40. "Cmd-K Cmd-C":"showInCenter"
41. "Cmd-K Cmd-G":"clearBookmarks"
42. "Cmd-K Cmd-Backspace":"delLineLeft"
43. "Cmd-K Cmd-1":"foldAll"
44. "Cmd-K Cmd-0":"unfoldAll"
45. "Cmd-K Cmd-J":"unfoldAll"
46. "Shift-Ctrl-Up":"addCursorToPrevLine"
47. "Shift-Ctrl-Down":"addCursorToNextLine"
48. "Cmd-F3":"findUnder"
49. "Shift-Cmd-F3":"findUnderPrevious"
50. "Shift-Cmd-[":"fold"
51. "Shift-Cmd-]":"unfold"
52. "Cmd-H":"replace"
Q: How do I compare codes
A: There are two ways to perform code comparison
1. Click the "M" menu on the main interface, and then click the "FileMerge" button to automatically display the code difference between the time the file is opened and
before you save it.
2. Click the setting area in the upper right corner and select "Code Comparison Tool" to select two different code files on the phone for comparison. You can also paste
code files for comparison.
Q: How to copy files and directories in the computer to the "working directory"
A: Click the operation button in the upper right corner of "Working Directory", and use the webdav file transfer method to copy the directory to codemaster.
Q: How to download code files or ordinary files
A: Click the operation button in the upper right corner of the "Working Directory", click the "Download Remote File" button, and then click the + button to add the
connection that needs to be downloaded, and then click the list to download it automatically. If the downloaded file is relatively large, you can close it Download window,
the download will continue to download in the background, a prompt box will pop up after the download is complete, and the downloaded file will be stored in the
"working directory/Downloaded". Support downloading by entering the download address of GitHub. If you need to download and view the source code of the webpage,
you can also directly enter the URL.
Q: How to transfer my code to the remote server
A: Click the "Transfer" button, and then long press on the list above, the "Upload" button will pop up, click Upload to upload the file. If you need to modify the upload
directory, please click the list below, browse to the directory of the remote server, and then click upload again, the upload directory will change. Please note, please set
up the connection information before uploading.
Q: How to manage my SFTP
A: Click the "SFTP" button, set the connection information and click Connect again to connect to SFTP. Please note that in order to prevent server files from being
accidentally deleted when they are in use, this version does not support direct deletion of files on SFTP (if you need to delete files, please log in to the server using the
SSH function to delete them). Only folders or files can be created. Please set the connection information before uploading.
Q: How to use SSH
A: Click the "SSH" button, set the connection information and click Connect again to connect to SSH.
Q: How is my SSH and SFTP login information stored?
A: Use Apple's NSUserDefaults to store it in your phone. If you need to delete it, just set the relevant login information to be empty in the "Connection Settings".
Q: How do I compile the developed code
A: Please open the "Code Template" folder provided by default in the "Home", which provides code templates in multiple languages, you can modify on this basis, and
then click the "RunCode" button in the "M" menu , CodeMaster will automatically select the corresponding compiler to compile the code. If you accidentally delete the
code template, you can decompress the default "Code Template.zip" and regenerate the template file. Please note that decompression will overwrite the existing
template file. If you accidentally delete "Code Template.zip", it doesn't matter, restarting the CodeMaster system will automatically create it again. For more detailed
instructions, please check "README.md" in the "Code Template" folder.
Q: How do I use WiFi cross-screen programming
A: Please click "WiFi Transfer and Edit files (on/off)" in the upper right corner of the "Working Directory", and then enter the web page address on the computer
browser. After browsing, you will see the following content. Click the "Edit" button on the right to edit
使⽤帮助
CodeMaster 实现在移动设备上写代码然后传递到服务器上运⾏的整个流程。
1. 初次使⽤,请点击左上⻆按钮,看到有“⼯作⽬录”,"⽂件管理","数据库","SFTP","传输","SSH"按钮,在“⼯作⽬录”右上⻆点击按钮,你可以新建⽂件(创建各种代码⽂件,
⽐如ViewController.h),新建⽂件夹,导⼊⽂件(从icloud等地⽅导⼊⽂件,⽀持多选),WiFi传输⽂件(从电脑或者任意其他⼿机内传输⽂件到⼯作⽬录),黏贴,移
动。在“⼯作⽬录”中⻓按⽂件或者⽂件夹,可以实现⽂件或者⽂件夹的重命名、移动、拷⻉、上传(SFTP),单击⽂件或者⽂件夹可以对⽂件进⾏浏览。请注意,“⼯作
⽬录”内的⽂件复制或黏贴仅在"⽂件管理"内实⽤。
2. "⽂件管理"⾯板可以便捷的管理其他APP内的⽂件或者icloud内的⽂件,请注意,⽂件管理内的⽂件复制或者黏贴仅在"⽂件管理"内实⽤。
3. "数据库"⾯板内存储的是你编辑后的代码,如果希望代码保存在数据库内,请编辑后的⽂件点击“SaveToDB”可以将编辑内容保存到本地数据库。如果点击“SaveToFile”,
编辑后的⽂件会覆盖源⽂件。
4. "SFTP"⾯板⽀持您浏览远程服务器内的内容,在使⽤SFTP之前请点击右上⻆操作按钮,先链接到服务器。请注意,为安全起⻅"SFTP"仅⽀持内容浏览或者下载后查看,
如果需要更新⽂件内容,请查看“传输”的使⽤,如果需要删除远程服务器内容,请登录“SSH”控制台使⽤命令删除。如果需要下载⽂件,请浏览到该⽂件,点击后查询“下
载”按钮,点击下载可以下载到“⼯作⽬录”对应的ip地址⽬录内,您可以编辑后更新到服务器。
5. “传输”⾯板帮助您把⽂件传输到远程服务器,要传输⽂件到服务器,请在⾯板上⾯选择⽂件,然后⻓按⽂件,在弹出的菜单中选择“上传”,上传⽂件不需要您⼿⼯输⼊本地
或者远程⽂件路径。如果您要改动上传路径,只需要在远程浏览到存储⽂件的⽬录,在本地浏览到要上传的⽂件,再次点击“上传”就能改动上传路径。请注意,如果远程
⽂件存在,上传的⽂件会覆盖远程⽂件。上传前请先链接到远程服务器。
6. “SSH”⾯板帮助您登陆服务器后使⽤服务器端的命令(⽐如 ll 等命令),要登陆服务器,前先点击右上⻆按钮,链接到服务器。“BG”按钮设置背景⾊,“TC”按钮设置⽂字
颜⾊ ,“CMD”按钮显示最近您输⼊的命令,“- +”按钮缩放⽂字。
7. 在编辑区点击右边中间“M”按钮可以打开各种编辑命令,点击会执⾏相应的操作。在截屏弹出的地⽅会出现键盘扩展,您可以根据需要在设置区关闭它。
8. 点击右上⻆按钮,可以进⾏各项属性设置。如有其他使⽤问题,请点击“反馈”按钮给我们反馈。
常⻅问题
问:我如何选择代码⾼亮
答:不需要⼈⼯选择,编辑器会根据你的代码⾃动匹配⾼亮⽅案
问:我如何⾃定义代码提示
答:请在设置区点击“⾃动代码提示”,输⼊您先⾃定义的代码提示,编辑器会⾃动进⾏分词匹配,当你输⼊代码的时候显示⾃动提示。
问:如何对代码进⾏缩⼩放⼤查找等操作
答:请点击主屏幕“M”按钮查找相应按钮操作
问:如何⾃定义操作菜单
答:请在设在区点击“⾃定义编辑器菜单”,勾选您需要使⽤的常⽤菜单,然后点击“存储”
问:如何对菜单进⾏排序
答:请点击主屏幕“M”按钮,在弹出菜单中⻓按某项菜单,拖动可以实现菜单排序。
问:如何保存我编辑后的⽂件但是不覆盖源⽂件
答:请编辑后点击点击“SaveToDB”按钮
问:请问⽀持哪些语⾔⾼亮
答:以下为⽀持语⾔
APL, ASN.1, Asteriskdialplan, Brainfuck, C, C++, C#, Ceylon, Clojure, ClosureStylesheets (GSS), CMake, COBOL, CoffeeScript, CommonLisp, Crystal, CSS, Cypher,
Cython, D, Dart, Django (templatinglanguage), Dockerfile, diff, DTD, Dylan, EBNF, ECL, Eiffel, Elixir, Elm, Erlang, Factor, FCL, Forth, Fortran, F#, Gas (AT&T-style
assembly), Gherkin, Go, Groovy, HAML, Handlebars, Haskell (Literate ), Haxe, HTML embedded (JSP, ASP.NET), HTML mixed-mode, HTTP, IDL, Java, JavaScript (JSX),
Jinja2, Julia, Kotlin, LESS, LiveScript, Lua, Markdown (GitHub-flavour), Mathematica, mbox , mIRC, Modelica, MscGen, MUMPS, Nginx, NSIS, N-Triples/N-Quads,
ObjectiveC, OCaml, Octave (MATLAB), Oz, Pascal, PEG.js, Perl, PGP (ASCIIarmor), PHP, PigLatin, PowerShell
,Propertiesfiles,ProtoBuf,Pug,Puppet,Python,Q,R,RPM,reStructuredText,Ruby,Rust,SAS,Sass,Spreadsheet,Scala,Scheme,SCSS,Shell,Sieve,Slim,Smalltalk,Smarty,Solr,Soy,Stylus
, SQL (severaldialects), SPARQL, Squirrel, Swift, sTeX, LaTeX, Tcl, Textile, Tiddlywiki, Tikiwiki, TOML, Tornado (templatinglanguage), troff (formanpages), TTCN,
TTCNConfiguration, Turtle, Twig, VB.NET, VBScript, Velocity, Verilog/SystemVerilog, VHDL, Vue.jsapp, WebIDL, XML/HTML, XQuery, Yacas, YAML, YAMLfrontmatter, Z80
问:如何⽀持代码从右往左显示(⽐如阿拉伯语)
答:请在设置区打开“双向⽂字”功能
问:如何⽀持⽀持 Sublime
答:请在设置区打开“⽀持 Sublime”功能,请注意,开启该功能会覆盖其他快捷键,如果您不需要外接键盘,请不要开启这个功能,⽬前不能全部⽀持Subline 的所有功能,请
谨慎使⽤,Subline 快捷键映射功能请看下⾯
1. "Cmd-Left":"goLineStartSmart"
2. "Shift-Tab":"indentLess"
3. "Shift-Ctrl-K":"deleteLine"
4. "Alt-Q":"wrapLines"
5. "Ctrl-Left":"goSubwordLeft"
6. "Ctrl-Right":"goSubwordRight"
7. "Ctrl-Alt-Up":"scrollLineUp"
8. "Ctrl-Alt-Down":"scrollLineDown"
9. "Cmd-L":"selectLine"
10. "Shift-Cmd-L":"splitSelectionByLine"
11. "Esc":"singleSelectionTop"
12. "Cmd-Enter":"insertLineAfter"
13. "Shift-Cmd-Enter":"insertLineBefore"
14. "Cmd-D":"selectNextOccurrence"
15. "Shift-Cmd-Space":"selectScope"
16. "Shift-Cmd-M":"selectBetweenBrackets"
17. "Cmd-M":"goToBracket"
18. "Cmd-Ctrl-Up":"swapLineUp"
19. "Cmd-Ctrl-Down":"swapLineDown"
20. "Cmd-/":"toggleCommentIndented"
21. "Cmd-J":"joinLines"
22. "Shift-Cmd-D":"duplicateLine"
23. "F5":"sortLines"
24. "Cmd-F5":"sortLinesInsensitive"
25. "F2":"nextBookmark"
26. "Shift-F2":"prevBookmark"
27. "Cmd-F2":"toggleBookmark"
28. "Shift-Cmd-F2":"clearBookmarks"
29. "Alt-F2":"selectBookmarks"
30. "Backspace":"smartBackspace"
31. "Cmd-K Cmd-D":"skipAndSelectNextOccurrence"
32. "Cmd-K Cmd-K":"delLineRight"
33. "Cmd-K Cmd-U":"upcaseAtCursor"
34. "Cmd-K Cmd-L":"downcaseAtCursor"
35. "Cmd-K Cmd-Space":"setSublimeMark"
36. "Cmd-K Cmd-A":"selectToSublimeMark"
37. "Cmd-K Cmd-W":"deleteToSublimeMark"
38. "Cmd-K Cmd-X":"swapWithSublimeMark"
39. "Cmd-K Cmd-Y":"sublimeYank"
40. "Cmd-K Cmd-C":"showInCenter"
41. "Cmd-K Cmd-G":"clearBookmarks"
42. "Cmd-K Cmd-Backspace":"delLineLeft"
43. "Cmd-K Cmd-1":"foldAll"
44. "Cmd-K Cmd-0":"unfoldAll"
45. "Cmd-K Cmd-J":"unfoldAll"
46. "Shift-Ctrl-Up":"addCursorToPrevLine"
47. "Shift-Ctrl-Down":"addCursorToNextLine"
48. "Cmd-F3":"findUnder"
49. "Shift-Cmd-F3":"findUnderPrevious"
50. "Shift-Cmd-[":"fold"
51. "Shift-Cmd-]":"unfold"
52. "Cmd-H":"replace"
问:请问如何进⾏代码⽐较
答:有两种⽅式可以执⾏代码⽐较
1. 在主界⾯点击"M"菜单,然后点击“FileMerge”按钮,可以⾃动显示⽂件从打开到你没保存之前的代码差异。
2. 点击右上⻆设置区选择"代码⽐较⼯具"可以选择⼿机上两个不同的代码⽂件进⾏⽐较。你也可以黏贴代码⽂件进⾏⽐较
问:如何把电脑中的⽂件和⽬录拷⻉到"⼯作⽬录"
答:在"⼯作⽬录"右上⻆点击操作按钮,使⽤webdav⽂件传输⽅式可以实现把⽬录拷⻉到codemaster。
问:如何下载代码⽂件或者普通⽂件
答:在"⼯作⽬录"右上⻆点击操作按钮,点击"下载远程⽂件"按钮,然后点击+按钮添加需要下载的连接,然后点击列表下载就⾃动开始,如果下载的⽂件⽐较⼤,您可以
关闭下载窗⼝,下载会在后台持续下载,下载好后会弹出提示框,下载的⽂件存储在"⼯作⽬录/Downloaded"内。⽀持输⼊GitHub的下载地址下载。如果需要下载查看⽹
⻚源代码,也可以直接输⼊⽹址。
问:如何把我的代码传递到远程服务器
答:点击"传输"按钮,然后在上⾯列表⻓按,会弹出"上传"按钮,点击上传,就可以上传⽂件。如果需要修改上传⽬录,请点击下⾯的列表,浏览到远程服务器的⽬录,
然后再次点击上传,上传⽬录就会改变。请注意,上传前请先设置连接信息。
问:如果管理我的SFTP
答:点击"SFTP"按钮,设置连接信息后再次点击连接,就可以连接到SFTP。请注意,为了防⽌服务器⽂件被使⽤时不⼩⼼删除,此版本不⽀持SFTP上直接删除⽂件
(如需要删除⽂件,请使⽤SSH功能登陆到服务器使⽤命令删除),仅可以创建⽂件夹或者⽂件。上传前请先设置连接信息。
问:如何使⽤SSH
答:点击"SSH"按钮,设置连接信息后再次点击连接,就可以连接到SSH。
问:我的SSH,SFTP登陆信息是如何存储的
答:使⽤ Apple 的 NSUserDefaults 实现存储在您的⼿机内。如果需要删除,只需要在“连接设置”内把相关的登陆信息设置为空就可以了。
问:我如何对开发的代码进⾏编译
答:请在“⼯作⽬录”打开默认提供的“Code Template”⽂件夹,⾥⾯提供了多种语⾔的代码模板,您可以在此基础上修改,然后在“M”菜单中点击“RunCode”按钮,
codemaster会⾃动选择对应的编译器对代码进⾏编译,如果您不⼩⼼删除了代码模板,您可以减压默认的“Code Template.zip”重新⽣成模板⽂件,请注意,减压会覆盖
现有模板⽂件。如果不⼩⼼删除了“Code Template.zip”,没关系,重新启动CodeMaster系统会重新⾃动创建。更详细的使⽤说明,请查看“Code Template”⽂件夹内的
“README.md”。
问:我如何使⽤WiFi跨屏幕编程
答:请在“⼯作⽬录”右上⻆按钮点击“WiFi传送与编辑⽂件(开/关)”,然后在电脑浏览器上输⼊看到⽹⻚地址,浏览后看到如下内容。点击右边的“编辑”按钮进⾏编辑