Customized IDE

目次

Character input

Code highlighter

Built-in Python keywords and PSJ API are highlighted in different color for better visualization. The highlighted data is stored in the database folder.

In addition, when user double-clicks a word, the same word is highlighted (yellow).

Code Highlighter

Auto completion

This IDE supports auto-completion.

For example, if user types Geometry.Me, a list box will appear and show words that start with Me.

Auto-Completion

The auto-completion data is stored in the database folder and supporting the following:

  • All words in the IDE
  • Python keywords
  • PSJ-Utility
  • PSJ-Command

Tooltip

This IDE supports showing tooltips.

For example, if user enters JPT.ClearLog(, a tooltip showing the JPT.ClearLog document is displayed.

Tooltip

The docstring from user’s defined function is also displayed.

The tooltip data is stored in the database folder.

Group block of script (Collapse/Expand)

This IDE supports code block grouping (a portion of code can be shown or hidden)

Group block

File Menu

File menu
NAMEDESCRIPTIONSHORTCUT KEY
NewMake a new document^ Ctrl + N
OpenOpen a saved Python script file.
(uer can also drag & drop Python file to the IDE window)
^ Ctrl + O
SaveSave the Python script file^ Ctrl + S
Save AsSave the Python script file with another name^ Ctrl + E
ExitClose the IDE^ Ctrl + Q

Edit Menu

Edit menu
NAMEDESCRIPTION SHORTCUT KEY        
UndoCancel the executed operation and return to the previous state^ Ctrl + Z
RedoRetry the canceled operation^ Ctrl + Y
CutCut the selected text^ Ctrl + X
CopyCopy the selected text^ Ctrl + C
PastePaste the Cut/Copy text^ Ctrl + V
Import Macro LogImport the macro of the executed command in the form of JPT.Exec(macro command)^ Ctrl + M
Import Python Macro LogImport the executed PSJ-Command^ Ctrl + J
Import Script From Last RunImport the Python script from last run in the IDE^ Ctrl + L
FindFind a specific character in the script.
(if user selects some words before executing this function, initial search value will be added with selected words)
^ Ctrl + F
CommentInsert the comment tag # before the selected script^ Ctrl + K
Toggle CommentSwitch between comment and comment cancellation^ Ctrl + T
Go To LineGo to a specific line in the script^ Ctrl + G
Find And ReplaceFind and replace the specific characters in the script.
(if user selects some words before executing this function, initial search value will be added with selected words)
^ Ctrl + H
Convert to Upper CaseConvert selected text to upper case^ Ctrl + ⇧ Shift + U
Convert to Lower CaseConvert selected text to lower case^ Ctrl + U
Insert TabInsert a tab to current cursor.
In case multiline is selected, tabs will be inserted at the beginning of each line
^ Ctrl + I
Duplicate Selection/LineDuplicate selected text.
In case selected is empty, current line is duplicated
^ Ctrl + D

View Menu

NAMEDESCRIPTION    SHORTCUT KEY      
Toggle Text WrappingWrap the whole code within the IDE window or let the code stays in one line only^ Ctrl + W

Run Menu

NAMEDESCRIPTIONSHORTCUT KEY
Run AllExecute all the scriptF5
Run SelectedExecute only the current selected scriptF6

Database

IDE database

The IDE database is stored in the Jupiter installation folder/IDEData/. This database can be edited.

Content of each file

  • Keywords.dat: Keywords for code highlighter in the IDE
  • PSJCommandCalltips.dat: PSJ-Command auto-completion and tooltip data
  • PSJGuiTooltip.dat: PSJ-GUI auto-completion and tooltip data
  • PSJUtilityCalltips.dat: PSJ-Utility auto-completion and tooltip data
  • PSJPythonHelperCalltips.dat: PSJ Python Helper calltips
目次