![]() String selectedText = caretModel.getCurrentCaret().getSelectedText() Įven though this action is the same for both editor and console windows, accessing the selected text works the same way. To get the text to search for, we'll use the Editor API to retrieve highlighted text on the screen: final Editor editor = e.getRequiredData(CommonDataKeys.EDITOR) ĬaretModel caretModel = editor.getCaretModel() For example, we could use the PSI to find all public methods in a Java class. Note that the PSI also provides language-specific details about a file. Language lang = e.getData(CommonDataKeys.PSI_FILE).getLanguage() In this case, we use the PSI to determine the programming language of a file: PsiFile file = e.getData(CommonDataKeys.PSI_FILE) This API parses all the files in a project and provides a programmatic way to inspect them. Update System packages Well, before going further open the command terminal and then run the system update command according to the Linux you are using. ![]() ![]() To get the language tag, we'll use the Program Structure Interface. In the Welcome window, click the Configure -> Plugin button on the bottom right of the window. Installing IntelliJ IDEA Step 3: Install AWS CLI and Configure it Step 4: Install AWS Toolkit on IntelliJ IDEA 1. One is the language tag, and the other is the text to search for. First, though, we need to collect two values for StackOverflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |