typora markdown 官方快捷键/自定义/标记快捷键(查看与修改)/多种方法将markdown转word(docx)
常用
插入公式/段落层次设置 等
修改快捷键(for windows)
使用json with doc模式编辑(for vscode+jsonc)
保存修改,重启typora:
查看修改效果:
markdown转word(docx)
typora
正式版已经开始收费
但是测试版不用,而且我测试转换的测试版最后一个测试版(beta)能够满足转换功能;
方式0(typora复制粘贴到word):
-
转换过程其实很简单,就是全选typora中打开的markdown,然后(创建)并打开一个空的word文档(.docx)
-
现在将内容粘贴到空
.docx
中即可 -
-
导航大纲也能得到保留
advantage
- 不用安装pandoc等其他软件
disadvantage
- 对于表格的转换,可能会溢出页面,需要手动调整表格
方式1(纯pandoc CLI方式):
批量操作可以借助powershell 或bash/zsh等shell或其他编程语言来批处理
pandoc结合powershell示例
将当前目录下的所有.docx
转换为md
(markdown)
ls *.docx|foreach{Invoke-Expression "pandoc.exe -s $($_.Name) -o $($_.baseName).md"}
用pandoc命令行直接md文件转为docx文件
pandoc -s <source.md> -o <output.docx>
- 具体的语法可以参照
pandoc
官方文档(打开较慢) - Converting a file
- Pandoc - Getting started with pandoc(完整的入门流程)
pandoc转换基本效果
- 对于复杂大表格中,单格内容过多换行问题,可以适当的手动调整表格中文字字体的大小(特别是一些长公式)
方式2(typora调用padoc,GUI方式):
结合pandoc,typora支持导出为.docx
格式文件
- 安装并检验pandoc
- 可以用zip包,但是需要配置环境变量!以及(path变量)
- 从github上下载:Releases · jgm/pandoc (github.com)
- 从官网下载:Pandoc - Installing pandoc
方式3(IDEA):
Markdown | IntelliJ IDEA (jetbrains.com)
使用IDEA+Pandoc
IDEA似乎只支持安装版的pandoc(zip版似支持的不好)
Shortcut Keys 默认快捷键大全(offical)
-
Shortcut Keys - Typora Support
- 可能打不开
-
Frequently Used Shortcut Keys
-
Change Shortcut Keys
- macOS
- Windows / Linux
Summary
You can use shortcut keys to quickly insert or modify styles or do other operations supported by Typora.
You can find shortcut keys in the right side of each menu items from menu bar.
Frequently Used Shortcut Keys
Autocomplete
On macOS, you can press Esc
key to open inline preview for inline math, auto-complete for emoji, etc.
File
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
---|---|---|
New | Ctrl + N | Command + N |
New Window | Ctrl + Shift + N | Command +Shift + N |
New Tab | (Not Supported) | Command + T |
Open | Ctrl + O | Command + O |
Open Quickly | Ctrl + P | Command + Shift + O |
Reopen Closed File | Ctrl + Shift + T | Command + Shift + T |
Save | Ctrl + S | Command + S |
Save As / Duplicate | Ctrl + Shift + S | Command + Shift + S |
Preference | Ctrl + , | Command + , |
Close | Ctrl + W | Command + W |
Edit
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
---|---|---|
New Paragraph | Enter | Enter |
New Line | Shift + Enter | Shift + Enter |
Cut | Ctrl + X | Command + X |
Copy | Ctrl + C | Command + C |
Paste | Ctrl + V | Command + V |
Copy As Markdown | Ctrl + Shift + C | Command + Shift + C |
Paste As Plain Text | Ctrl + Shift + V | Command + Shift + V |
Select All | Ctrl + A | Command + A |
Select Line/Sentence Select Row (in table) | Ctrl + L | Command + L |
Delete Row (in table) | Ctrl + Shift + Backspace | Command + Shift + Backspace |
Select Style Scope Select Cell (in table) | Ctrl + E | Command + E |
Select Word | Ctrl + D | Command + D |
Delete Word | Ctrl + Shift + D | Command + Shift + D |
Jump to Top | Ctrl + Home | Command + ↑ |
Jump to Selection | Ctrl + J | Command + J |
Jump to Bottom | Ctrl + End | Command + ↓ |
Find | Ctrl + F | Command + F |
Find Next | F3 / Enter | Command + G / Enter |
Find Previous | Shift + F3 / Shift + Enter | Command + Shift + G / Shift + Enter |
Replace | Ctrl + H | Command + H |
Paragraph
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
---|---|---|
Heading 1 to 6 | Ctrl + 1/2/3/4/5/6 | Command + 1/2/3/4/5/6 |
Paragraph | Ctrl + 0 | Command + 0 |
Increase Heading Level | Ctrl + = | Command + = |
Decrease Heading Level | Ctrl + - | Command + - |
Table | Ctrl + T | Command + Option + T |
Code Fences | Ctrl + Shift + K | Command + Option + C |
Math Block | Ctrl + Shift + M | Command + Option + B |
Quote | Ctrl + Shift + Q | Command + Option + Q |
Ordered List | Ctrl + Shift + [ | Command + Option + O |
Unordered List | Ctrl + Shift + ] | Command + Option + U |
Indent | Ctrl + [ / Tab | Command + [ / Tab |
Outdent | Ctrl + ] / Shift + Tab | Command + ] / Shift + Tab |
Format
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
---|---|---|
Strong | Ctrl + B | Command + B |
Emphasis | Ctrl + I | Command + I |
Underline | Ctrl + U | Command + U |
Code | Ctrl + Shift + ` | Command + Shift + ` |
Strike | Alt + Shift + 5 | Control + Shift + ` |
Hyperlink | Ctrl + K | Command + K |
Image | Ctrl + Shift + I | Command + Control + I |
Clear Format | Ctrl + \ | Command + \ |
View
Function | Hotkey (Windows/Linux) | Hotkey (macOS) |
---|---|---|
Toggle Sidebar | Ctrl + Shift + L | Command + Shift + L |
Outline | Ctrl + Shift + 1 | Command + Control + 1 |
Articles | Ctrl + Shift + 2 | Command + Control + 2 |
File Tree | Ctrl + Shift + 3 | Command + Control + 3 |
Source Code Mode | Ctrl + / | Command + / |
Focus Mode | F8 | F8 |
Typewriter Mode | F9 | F9 |
Toggle Fullscreen | F11 | Command + Option + F |
Actual Size | Ctrl + Shift + 0 | (Not Supported) |
Zoom In | Ctrl + Shift + = | (Not Supported) |
Zoom Out | Ctrl + Shift + - | (Not Supported) |
Switch Between Opened Documents | Ctrl + Tab | Command + ` |
Toggle DevTools | Ctrl + Shift + I | - |
Change Shortcut Keys
Users can set or reassign shortcut keys for commands in Typora’s menu bar. This article will shows how to do this.
macOS
We use macOS’s system feature to customize Typora’s key binding on macOS.
- Open
System Preference
→Keyboard
, select tabShortcuts
. SelectApp Shortcuts
in its left panel.
-
Click the “+” button, a dialog sheet would pop up. Select “Typora.app” from field
Application
, then enter the exact name of the menu command you want to add, and then type the shortcut key combination you want to assign.For example, assume you want to add/change the shortcut key to pin Typora’s window, you can fill the dialog box as follows:
Then
Command+Shift+P
will be the shortcut key for menu command “always On Top”
Windows / Linux
Tip: This requires a version of Typora ≥ v0.9.16.
-
Open
Menu
→Preference
in Typora, then click “Open Advanced Settings”. -
Open and edit
conf.user.json
from opened “File Explore”. If there’s no such file, create one. -
Set or add JSON object which represents a key binding, for example:
- Restart Typora, and the new key binding will be applied.
You can set or change shortcut keys for menu items in the menu bar in native window style.
Q: Shortcut keys does not work on Ubuntu
For solutions to this problem please see:
- https://help.ubuntu.com/community/KeyboardShortcuts and
- https://askubuntu.com/questions/208310/ctrl-a-doesnt-work-in-browsers.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」