Notepad++: Insert Timestamp -- Using Python
2013-12-26 21:00
10 查看
1. Select menu Plugins\Python Script\New Script.
2. Create a script file "DateTime.py" for example. Then, input following statements in it:
import time
editor.addText(time.strftime('%Y-%m-%d %H:%M'))
3. Select menu Plugins\Python Script\Configuration.
4. In Python Script Shortcut Configuration dialog,
1) Check radio button of "User Scripts"
2) Select the file you just created
3) Click [Add] button which is above "Menu Items" frame.
4) Click [OK] to close this dialog.
5. You will find there is an item of "DateTime" in Plugins\Python Script\
If you want to assign a shortcut to this item/command, please follow these steps:
1. Open Shortcut mapper dialog with menu path "Settings\Shortcut Mapper".
2. Select tab of "Plugin commands"
3. Scroll the window to locate to the DateTime command.
4. Click [Modify] button and assign a shortcut for the DateTime command.
2. Create a script file "DateTime.py" for example. Then, input following statements in it:
import time
editor.addText(time.strftime('%Y-%m-%d %H:%M'))
3. Select menu Plugins\Python Script\Configuration.
4. In Python Script Shortcut Configuration dialog,
1) Check radio button of "User Scripts"
2) Select the file you just created
3) Click [Add] button which is above "Menu Items" frame.
4) Click [OK] to close this dialog.
5. You will find there is an item of "DateTime" in Plugins\Python Script\
If you want to assign a shortcut to this item/command, please follow these steps:
1. Open Shortcut mapper dialog with menu path "Settings\Shortcut Mapper".
2. Select tab of "Plugin commands"
3. Scroll the window to locate to the DateTime command.
4. Click [Modify] button and assign a shortcut for the DateTime command.
相关文章推荐
- [RT] Twitter from the command line in python using OAuth
- python timeit模块的使用(附加append、insert、extend用法)
- Using Python+MetaWeblog to manage your blog
- notepad++安装emmet和python script
- Using pip to install Python packages on Anaconda
- how-to-send-emails-with-gmail-using-python
- install opencv3 with python2.7 bindings on Mac using Hombrew and git
- The typical scenarios of using "Insert" in T-sql
- The Ex CS Grad Student: Running HQL from Python without using the Hive Standalone Server
- Python Web-第四周-Programs that Surf the Web(Using Python to Access Web Data)
- notepad++中的python缩进问题
- Windows Notepad++ 开发 Python 配置
- Using Python as PDF Editing and Processing Framework
- Using Django with GAE Python 后台抓取多个网站的页面全文
- editplus与notepad++写python乱码
- python time, datetime, string, timestamp相互转换
- Notepad++ 轻量级 python IDE 配置
- Python数据结构与算法分析学习记录(1)——基于Problem Solving with Algorithms and Data Structures using Python的学习
- OpenCV Using Python——基于SURF特征提取和金字塔LK光流法的单目视觉三维重建
- 【Python错误】windows下使用pip/easy_install提示Fatal error in launcher: Unable to create process using...