PhpStorm isn't reanalyze all current page - ide

How can I reanalyse current page; because when I paste some code, PhpStorm(Version 2021.2) doesn't reanalyse to the all page.
Is there a shortcut for this process?
I'm selecting to all page then cutting then paste again and the problem disappears. Like this :

Related

How to use tabs for Markdown indentation in IntelliJ 2020.2.1

For every file type it is possible to press the button at the end of the bottom bar and change to tabs in the popup but the popup for Markdown does not show an option to use tab character, even though the buttons says "Configure Indents".
How can I use tabs for Markdown without having to do "CTRL+SHIFT+A -> To Tabs" after every time I've finished writing?
Solved in 2020.3 (currently early access).
Issue: https://youtrack.jetbrains.com/issue/IDEA-243531

Navigate to the changed line of code in a file in Intellij Idea

I have a huge class in which I changed couple of lines in different places. Is there a way(shortcut) to navigate through changed lines of code in the file and not to scroll all the way up/down?
If you edit a file that is under version control, IntelliJ IDEA provides several ways to move back and forth with the updates. In particular, you can use the navigation commands (Navigate | Next / Previous Change.), keyboard shortcuts (⌃⌥⇧↓/ ⌃⌥⇧↑), and the change markers.
To navigate to the place of your last edit, press ⌃⇧⌫ or select Navigate | Last Edit Location from the main menu.
https://www.jetbrains.com/help/idea/navigating-through-the-source-code.html#20c948f4
I'm using Control + Alt + Left|Right Arrow for current KeyMap
Refer this screen-shot for your reference in case you are having different mapping.

Copying data from browser to a file

I am facing a problem, can anyone help me to sort this out:
Background: I have to create a backup of the code exist in the editor(Code mirror), so the use case is I have to copy the code from the editor and save it as .html file.
While using the element.getText() and writing to a file works fine but the issue is the getText()only get the code visible on the screen. Since the code lines vary so if I use javascript scrolls then it didn't work as some page on the editor (code mirror) would have 100 lines of code or some may have 2000.
Another solution I tried is to use Action class i.e mouse actions means Select all and copy i.e Keys.COMMAND, "c")).perform();
The Problem is here how can I copy the selected text to the clipboard or save the copied text to the string so that I can execute BufferedWriter class.
Would appreciate if anyone can help.
Sorry I misunderstood your question.
For the link https://codemirror.net/demo/theme.html, to get the code, I think you should first scroll to the bottom of the editor using executeScript(Scroll to bottom of div?). After that, element.getText() should give you full code.
Update: You can also select the text by clicking on the editor and then pressing Ctrl + A, after that get selected text by executing javascript on the browser (Get the Highlighted/Selected text). You can then handle the text within your test script.

MS Word letterhead (page-header) with different margins on pages

I have got a word document with two pages. The margin of the page-header should be different on the two pages. I tried a lot to have a margin of 4 cm on the first page and 9 cm on the second page but with no success. I used Word 2003.
What I did:
Went to the second page and opened the "header and footer" bar.
I added the page-numbers and top-margins and clicked on "page setup" on the "header and footer"-bar
Afterwards I checked the box "different first page" and modified the header for the first page, too.
Problem:
THE MARGIN OF PAGE-HEADER IS THE SAME ON BOTH PAGES
Additional Info:
Actually I found this tutorial but it did not help me:
http://wordfaqs.mvps.org/Letterhead.htm
It's easy if you know it:
Enter the header on the second page. Add as many "returns" as you need to widen the header to the bottom. Sometime the "returns" in the header have a delay. Finally click on "different first page". That's it! Now you have a different margin on the first page compared to the following pages.
It is confusing that word has an Option for the header-margin. This option changes the header only globally.
For this you need to break the links between two pages for the header section. Follow the following step:
Create the doc and click the Page Layout tab.
In the Page Setup group, choose the appropriate section break option from the Breaks dropdown.
In Word 2003, choose Break from the Insert menu. Choose a break from the resulting dialog and click OK.
Double-click in the new section's header space. In the context Design tab, click the Link To Previous option in the Navigation group. Here you may found the the link is disabled. This is because of you have not selected the appropriate break. Try with different section break.
In Word 2003, choose Header and Footer from the View menu to open the header in edit mode.
Click the Link To Previous button in the Header and Footer toolbar to break the link.
Now the links has been broken. You can change you header and footer to desired height/width.
I have checked this from here and found working fine in office 2007 as well.

Is there a keyboard shortcut to cycle through open documents in Geany?

I have multiple documents open in Geany. I can see them listed in the sidebar under the "Documents" tab. Ctrl + Tab switches me from the current document to the previous but I don't know of any way to cycle through the documents in a sequence.
Can this be done using Geany? Is there a plugin for this by any chance?
Switch to left document Ctrl-PageUp (C) Switches to the previous open document.
Switch to right document Ctrl-PageDown (C) Switches to the next open document.
Switch to last used document Ctrl-Tab Switches to the previously shown document (if it's still open). Holding Ctrl (or another modifier if the keybinding has been changed) will show a dialog, then repeated presses of the keybinding will switch to the 2nd-last used document, 3rd-last, etc. Also known as Most-Recently-Used documents switching.
Move document left Ctrl-Shift-PageUp Changes the current document with the left hand one.
Move document right Ctrl-Shift-PageDown Changes the current document with the right hand one.
Move document first Moves the current document to the first position.
Move document last Moves the current document to the last position.
notebook-tab-keybindings for Geany
I'm not sure if this is exactly what you're asking about or not, but on my system pressing ALT+1, ALT+2, etc. will select currently open documents, much the same as clicking on the tabs with the mouse (note that the left-most document tab corresponds to ALT+1, and so on). Most other apps, such as web browsers, seem to use the CTRL key as the modifier to directly select an open tab, so if ALT doesn't do the trick on your system try CTRL as the modifier key instead!
Hope this helped!