atom快捷键及常用包

这里介绍一个ubuntu下边的很好用的markdown编辑工具,一般来讲,如果不使用很多公式的话,一般的编辑器就可以满足要求,就是因为公式的出现会使得很多markdownpad等等常用的工具变得十分不好用,而且如果一直在网页中编辑公式,遇到网络状态不好的时候很不方便,因此这款工具对与科研工作者写博客十分有帮助。
同时该工具支持很多语言的开发,包括c/cpp,python,latex等等。
这里首先给出一些常用的快捷键,然后介绍一些常用包。

atom is very easy to install katex and latex and install useful packages .

Atom Keyboard Shortcuts

This page lists keyboard shortcuts for the Atom text editor that I find valuable and use a lot. Feel free to fork the page and add your own favorites. Pull Requests welcome!

This list is by no means meant to be a complete listing of every available shortcut. It simply lists the shortcuts that I use on a regular basis. For a complete listing of all available shortcuts, consult the Settings > Keybindings page in Atom.

Since I’m using a Mac, I have mainly listed the keyboard shortcuts for Mac OS X. Please feel free to add the Windows or Linux shortcuts.

Where the shortcut is provided by a package, I have added a link to the package.

General

Some general keyboard shortcuts that I use frequently.

CommandMac OS XWindowsLinuxDescription
Preferences/Settingscmd-,ctrl-,ctrl-,Opens the Preferences/Settings view
Command Paletteshift-cmd-pshift-ctrl-pctrl-shift-pOpens & closes the command palette
Open File (Fuzzy)cmd-pctrl-p
or
ctrl-t
ctrl-pOpens the Fuzzy Finder palette in which you can search and open files
Browse Open Filescmd-bctrl-bctrl-bBrowse tabs within the window
Grammar Selectorctrl-shift-lctrl-shift-lctrl-shift-lSelects the language the file is in
Markdown Previewctrl-shift-mctrl-shift-mctrl-shift-mPreviews the file in the Markdown format
Key Binding Resolvercmd-.ctrl-.ctrl-.Shows what keybindings the pressed key combination resolves to
Toggle Tree Viewcmd-k cmd-bctrl-k ctrl-b
or
ctrl-\
ctrl-k ctrl-b
or
ctrl-\
Toggles Atom’s file Tree View
Reload Atomctrl-alt-cmd-lalt-ctrl-ralt-ctrl-rReloads the Editor
Open Linkctrl-shift-oOpens up a HTTP or HTTPS link
Toggle Developer Toolsalt-cmd-ictrl-alt-ictrl-shift-iOpens up the Chrome Developer Tools/Console
Show Available Snippetsalt-shift-salt-shift-salt-shift-sShows the snippets available to Atom

Window Management

CommandMac OS XWindowsLinuxDescription
New Filecmd-nctrl-nctrl-nOpens an empty file in a new tab
New Windowshift-cmd-nctrl-shift-nctrl-shift-nOpens a new editor window
Opencmd-octrl-octrl-oShows the Open File dialog, which lets you select a file to open in the editor
Open Foldercmd-shift-octrl-shift-octrl-shift-oShows the Open Folder dialog, which lets you select a folder to add to the editor’s Tree View
Savecmd-sctrl-sctrl-sSaves the currently active file
Save Asshift-cmd-sctrl-shift-sctrl-shift-sSaves the currently active file under a different name
Save Allalt-cmd-sSaves all changed files
Close Tabcmd-wctrl-wctrl-wCloses the currently active tab
Close Windowshift-cmd-wctrl-shift-wctrl-shift-wCloses the currently active editor window

Editing

CommandMac OS XWindowsLinuxDescription
Duplicate Linesshift-cmd-dctrl-shift-dctrl-shift-dDuplicates the line of the current cursor position and creates a new line under it with the same contents
Delete Linectrl-shift-kctrl-shift-kctrl-shift-kDeletes the current line
Move Line Upctrl-cmd-upctrl-upctrl-upMoves the contents of the current cursor position up one line. If there is a line above with content, the current lines content will swap with the one above it.
Move Line Downctrl-cmd-downctrl-downctrl-downMoves the contents of the current cursor position down one line. If there is a line below with content, the line’s content will swap with the one below it.
Find/Replacecmd-fctrl-fctrl-fOpens up the Find/Replace panel
Find Nextcmd-gF3F3Toggles forward through the results of the current buffer in the file while the Find/Replace panel is active
Find Previous`shift-cmd-gshift-F3shift-F3Toggles backward through the results of the current buffer in the file while the Find/Replace panel is active
Find in Projectshift-cmd-fctrl-shift-fctrl-shift-fOpens the Find in Project Panel
Go To Linectrl-gctrl-gctrl-gOpens the Go To Line panel
Go To Matching Bracketctrl-mctrl-mctrl-mThe cursor goes to the matching top bracket that the cursor is ecapsulated in
Select Linecmd-lctrl-lctrl-lSelects the entire line the cursor’s current position is in
Toggle Commentcmd-/ctrl-/ctrl-/Toggles the selected text into a comment of the current grammar
Column Selectionctrl-shift-up/downAllows to select multiple rows, where the same edit will be applied

Various Packages

These are some packages I find useful, and their most useful key bindings. A list of my favorite packages can be found here.

CommandMac OS XWindowsLinuxPackage
Block Travel up/downalt-up, alt-downBlock Travel
Beautifyctrl-alt-bBeautify
Expand Abbreviationshift-cmd-ectrl-ectrl-eEmmet
Incremental Searchcmd-iIncremental Search
Git Plus Menushift-cmd-hctrl-shift-hctrl-shift-hGit Plus
Jumpyshift-enterJumpy
Minimap Togglectrl-k ctrl-mMinimap
Open File in Browserctrl-alt-mOpen in Browser
Run Scriptctrl-cmd-iScript - Keybinding remapped from original cmd-i to avoid conflict with Incremental Search
Open Terminalctrl-alt-tTerm2
Open Projectctrl-cmd-palt-shift-pctrl-alt-shift-pProject Manager
Open Inctrl-alt-oOpen In
Sublime Style Column Selectionalt-mouseSublime Style Column Selection

apm

apm is Atom’s package manager, based on Node’s npm tool.

CommandDescription
apm upgradeUpdates all locally installed packages
apm upgrade --no-confirmUpdates all locally installed packages without asking any questions
apm stars --installInstalls/updates all packages that you have marked as a favorite (starred) in your Atom.io profile
apm publish minorIf you’re developing your own package, run this in the package’s directory to publish a new version of the package, increasing the minor version number by one.

package

For c/cpp code

  • clang-format
  • autocompleter-clang
  • linter
  • linter-clang
  • terminal-plus
functionatom package
cmake语法高亮language-cmake
CMake自动补齐autocomplete-cmake
高亮文中所有与选中单词匹配的单词highlight selected
Markdown 语法快捷键Markdown writter
Markdown 预显示Markdown Preview Plus
tree 显示tree view

refer

  1. The best Markdown editors for Linux
  2. atom main page
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值