mac 打开记事本快捷键_如何在所有文件的Windows快捷菜单中添加“使用记事本打开”...

mac 打开记事本快捷键

mac 打开记事本快捷键

own_top

If you want to open a file type not registered with Notepad, you have to click through several options to make it happen. This can be a hassle, so why not add an “Open with Notepad” option right on your context menu?

如果要打开未在记事本中注册的文件类型,则必须单击多个选项才能使其生效。 这可能很麻烦,为什么不在上下文菜单中添加“使用记事本打开”选项呢?

The context menu you get when you right-click a file in Windows already provides a lot of value, but why not kick it up a notch? We’ve shown you how to add any application to the context menu to open apps quickly and how to customize the “Send To” menu. But if you’ve ever just wanted to open a file for a quick view in Notepad, you can save yourself the bother of having to wade through the “Open With” windows by adding an “Open with Notepad” option to the default context menu for all files. Here’s how to do it.

在Windows中右键单击文件时获得的上下文菜单已经提供了很多价值,但是为什么不提高它的档次呢? 我们已经向您展示了如何向上下文菜单中添加任何应用程序以快速打开应用程序以及如何自定义“发送至”菜单 。 但是,如果您只是想在记事本中打开文件以进行快速查看,则可以通过在默认上下文菜单中添加“使用记事本打开”选项来省去“打开方式”窗口的麻烦。对于所有文件。 这是操作方法。

NOTE: If you find yourself editing config files with Notepad often, you may want to install the free and open source Notepad++. It’ll automatically add an “Open with Notepad++” option to your context menu, and it generally does a better job of formatting config files and other code.

注意:如果您发现自己经常使用Notepad编辑配置文件,则可能需要安装免费和开源的Notepad ++ 。 它会自动在上下文菜单中添加一个“使用Notepad ++打开”选项,并且通常可以更好地格式化配置文件和其他代码。

通过手动编辑注册表将“使用记事本打开”添加到上下文菜单 (Add “Open with Notepad” to the Context Menu by Editing the Registry Manually)

To add the “Open with Notepad” option to the context menu, you just need to make a couple of quick edits in the Windows Registry.

要将“使用记事本打开”选项添加到上下文菜单中,您只需要在Windows注册表中进行几次快速编辑。

Standard warning: Registry Editor is a powerful tool and misusing it can render your system unstable or even inoperable. This is a pretty simple hack and as long as you stick to the instructions, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.

标准警告:注册表编辑器是一个功能强大的工具,滥用它会使您的系统不稳定甚至无法运行。 这是一个非常简单的技巧,只要您按照说明进行操作,就不会有任何问题。 也就是说,如果您以前从未使用过它,请在开始之前考虑阅读有关如何使用注册表编辑器的信息 。 并在进行更改之前一定要备份注册表 (和您的计算机 !)。

Open the Registry Editor by hitting Start and typing “regedit.” Press Enter to open Registry Editor and give it permission to make changes to your PC.

通过单击开始并键入“ regedit”来打开注册表编辑器。 按Enter键打开注册表编辑器,并授予其对PC进行更改的权限。

own_1

In the Registry Editor, use the left sidebar to navigate to the following key:

在注册表编辑器中,使用左侧边栏导航至以下键:

HKEY_CLASSES_ROOT\*\shell
own_2

Next, you’ll create a new key inside the shell key. Right-click the shell key and choose New > Key. Name the new key “Open with Notepad.”

接下来,您将在shell键中创建一个新键。 右键单击shell密钥,然后选择“新建”>“密钥”。 将新键命名为“使用记事本打开”。

own_3

Now, you’re going to create another new key inside that one. Right-click the new Open with Notepad key and choose New > Key. Name the new key “command.”

现在,您将在其中创建另一个新密钥。 右键单击新的“ Open with Notepad键,然后选择“新建”>“键”。 将新键命名为“命令”。

own_4

With the new command key selected, in the right-hand pane, double-click the (Default) value to open it’s properties page.

选择新的command键后,在右侧窗格中,双击(Default)值以打开其属性页面。

own_5

In the “Value data” box, type the following text and then click “OK.”

在“数值数据”框中,键入以下文本,然后单击“确定”。

notepad.exe %1
own_6

The changes should take place immediately. To test it out, just right-click any file and see if you see the “Open with Notepad” command.

更改应立即进行。 要对其进行测试,只需右键单击任何文件,然后查看是否看到“使用记事本打开”命令。

own_7

If you want to reverse the changes at any time, just head back into the Registry and delete the Open with Notepad key you created. This will also delete the command key you created inside.

如果您想随时撤消更改,只需回到注册表并删除您创建的“ Open with Notepad键。 这还将删除您在其中创建的command键。

下载我们的一键式注册表黑客 (Download Our One-Click Registry Hacks)

own_8

If you don’t feel like diving into the Registry yourself, we’ve created a couple of registry hacks you can use. The “Add Open With Notepad to Context Menu” hack creates the keys you need to add the “Open with Notepad” command. The “Remove Open With Notepad from Context Menu (Default)” hack deletes those keys, removing the command and restoring the default. Both hacks are included in the following ZIP file. Double-click the one you want to use and click through the prompts.

如果您不想自己进入注册表,我们已经创建了两个可以使用的注册表黑客。 “使用记事本打开到上下文菜单添加” hack创建需要添加“使用记事本打开”命令的密钥。 “从上下文菜单中删除使用记事本打开(默认)” hack会删除这些键,删除命令并恢复默认值。 这两种黑客都包含在以下ZIP文件中。 双击您要使用的一个,然后单击提示。

Open with Notepad Hacks

用记事本技巧打开

These hacks are really just the shell  key, stripped down to the new keys and values we talked about in the previous section and then exported to a .REG file. Running the hacks just creates or deletes the keys for adding the command to the context menu. And if you enjoy fiddling with the Registry, it’s worth taking the time to learn how to make your own Registry hacks.

这些hack实际上只是shell密钥,被分解为我们在上一节中讨论的新密钥和值,然后导出到.REG文件。 运行hack只会创建或删除用于将命令添加到上下文菜单的键。 而且,如果您喜欢使用注册表,则值得花时间学习如何制作自己的注册表黑客

翻译自: https://www.howtogeek.com/howto/windows-vista/add-open-with-notepad-to-the-context-menu-for-all-files/

mac 打开记事本快捷键

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值