Enable copy paste option in CKEditor source mode - ckeditor

Trying to enable copy paste option in CKEditor source mode,
for example
1. select some text in source mode
2. right click on the text or do CTRL+C to copy the text
3. again right click or do CTRL+V to paste the copied text
In my case in source mode it doesn't copy the selected text to clip board and it doesn't fire paste events as well,tried debugging clipboard paste event
can someone please help on this how i can check why its not firing the event in source mode. but works/fires the event in WYSIWYG mode.
Also is there any way i can debug clipboard plugin.js file, tried putting "debuger;" but doesn't stop there also doesnt load in developer tools
No errors in console
No customization on CKEditor 4.5.7 version

Related

three.js editor history: how do I get the commands into a script

So, as a web developer veteran (but a total, complete 3D noob) I'm impressed by what I can do with my models in the three.js editor
I see I can "rewind" my actions in the editor by clicking on the commands listed in the History panel..
Is there an easy way to see the actual javascript that lies underneath these command buttons (similar to the way you can copy your recent commands from the Log panel in Clara.IO's editing platform)?
You can try setting up breakpoints around the DOM elements in the history pane. What I tried is open Developer Pane in Chrome, click sources pane, and set up an event listener event breakpoint for mouse click.
Now if you click an item in history pane, you will be brought to stop on the function onClick in ui.three.js. You can step in to examine the JS code it is about to execute.
Hope that helps.

VisualStudio, focus on the texttip popup

I was used to the Eclipse IDE that when you hover the mouse on any place in the code it shows a text over the editor (in a popup window) with things like the Error of the line, the documentation of the variable and etc..
Now on VisualStudio the same function exists and I'm able to use the texttip to check the objects docs and etc.. my question is:
How can I focus the popup window so I can copy the text from the tip?
PS: On Eclipse that used to be the F2 (or F3, not sure) key.

working with xamarin code templates

I am trying understand hot xamarin code templates work and how to use it.
By reading the manual it appears the a user can select the code templates by clicking on it or hitting enter on it. Just like in eclipse and intellij.
But this seems not to work the same way in xamarin.
For example after I typed "try" in the editor and hit ctrl+space to get the code complete. Now I am presented with options to select. When I select try and click or hit Enter on it nothing happens. The code complete window just closes and the template is not added.
The animated gif demonstrates it with the mouse click event. But the behavior is the same for key events. Also no matter what I template I select it is never pasted.
You need to press tab key after you have selected the text. You basically have to press tab - tab. The first tab will complete the try text in your example. You may have only typed in t or tr. The second tab key press will expand the code template.
The behaviour is similar to Visual Studio. The difference is that Visual Studio gives you more information in the completion window that appears telling you that you need to press the tab key twice. Screenshot from Visual Studio is shown below.
With the screenshot above pressing tab once will close the completion window but not insert the code for the try template. Pressing tab again will insert the code template text.

Copy to clipboard from IPython using Windows 7

I am running IPython on Windows 7 and can use the %paste magic command to paste from the clipboard. However, I cannot copy from IPython to the clipboard. I want to copy code snippets from IPython and paste them back to a text editor.
Anyone know a fix for this?
Found this gist to add a %copy magic command, my fork adds supports osx/linux/windows platforms.
I have yet to test it on windows, so please tell me if you encounter any issues.
As mentioned by #AdrianRatnapala, you can right-click in the terminal window and select Mark, mark the code snippets you want to copy, and then right-click (the marked content is copied to the clipboard when you right-click).
A more "permanent way" to use this feature is to right-click on the title bar of the terminal window and choose Properties. Under the Options tab, tick the box next to QuickEdit Mode and save this setting.
A third option is to use IPython's Qt Console. You can use this by entering ipython qtconsole in the command prompt.
A real permanent mode is to do what sodd has told, but a little bit different:
Right click in the top of the shell window, but use default instead properties option, also select options and Quick edit mode. Now this setting will survive in the next shell activations.
So it's very easy to copy and paste
Drag and drop to draw a rectangle inside shell screen and press Enter. The content is is in Clipboard. After, if you can paste this in the shell it's just press Right key or outside, use the usual Ctrl+V.
The cool thing is that you can now omit the number of commands in the copy.

How to make Visual Studio editor stop scrolling past bottom of a file?

In the Visual Studio editor when you pull the scroll bar down to the bottom of the file, all you see is a blank page, since the text has scrolled up past the top of the text editor window. This makes scrolling to the bottom difficult because you can't just pull the scroll bar quickly all the way down but have to carefully position the cursor so you can still see your code.
How can I make it so that, as in NotePad, when I pull the scroll bar down to the bottom of the file, I see the bottom of the file?
There is a configuration option provided in VSCode for the functionality you specified. To enable it, go to File -> Preferences -> user settings
On the right side of the editor in settings.json paste the below line at the bottom (before closing bracket), save and close.
"editor.scrollBeyondLastLine": false
This will prevent the editor from scrolling beyond the last line.
Inside of VS Code, Press command+,, and search for "Scroll Beyond Last Line" and untick it
If you are willing to use the keyboard instead, pressing Ctrl+End will achieve what you want.

Resources