CLion does not paste the correct snippet from clipboard - clion

while having used Java and PHP most of the time in my programming "carreer", I am now trying to learn C++ more in-depth. For that, I am using CLion as my IDE - mostly because I am very familiar with phpStorm and IntelliJ IDEA and I don't want to "learn" a new IDE in addition to learning a new language.
Now, I have hit the problem, that CLion does not take my current Clipboard content when pressing Ctrl + V. The snippet was copied from the Browser (Firefox 41.0.1) and it neither works with code copied by Ctrl + C nor with code copied by rightclicking and then selecting Copy.
It seems like the IDE has problems with getting the Clipboard content from the outside, because when copying and pasting inside the IDE, it works perfectly fine. Only when trying to paste something from another program, it ignores it and pastes something that I copied inside the IDE before.
Do you have any clues on how to fix that? Is it a bug or did I mess up something in my settings or somewhere else?

Clearing "Paste from History" (Ctrl + Shift + V) worked for me.

Same issue with Chrome version 47.0.2526.106.
It seems like that the problem happens when more then one Clion project window is open. After resetting the clion clipboard the problem will not occur during the session again. But after starting a new Clion session the bug is back in place.
Added on 27th december: It also happens when you are only working with one window and stored 5 values in the clion clipboard.

For me works only using middle mouse button for paste.

There sometimes is a notification when you try to use several shortcuts that this is already taken by some VIM Commands and if you want to disable this. Selecting yes didn't change a thing for me.
But using that hint, going to File>Settings>Plugins, disabling IdeaVIM and than restarting did the job.
Fabrizios answered on the duplicate item something, that was partly helpful for me: Ctrl+Shift+V brings up the clipboard history)
This still left me with the actual problem (Ctrl+C, Ctrl+V and more not working).

Related

Windows Octave fails to paste text from clipboard?

I am just install Octave 4.2.0 in Windows 10 and try to do some Machine Learning exercises. I notice that I can't paste the normal clipboard content to the Octave.
Does anyone else have this issue? If so, any work around? Or is it just bug in the program?
Although your description doesn't indicate the exact place you're trying to paste contents into, there were a couple bugs around the time of Octave 4.2 specifically related to this problem. See:
bug #51095: editor doesnt allow paste of exisiting clipboard data
and
bug #52361: Ctrl-C/Ctrl-V only works reliably if executed as very first action
both bugs have since been patched and closed (around version 4.4), and reports seem to indicate that the problem has not resurfaced in later versions. Anyone experiencing similar issues in a recent version of Octave (v5.2.1 as of today) should either comment on one of those closed bug reports or create a new one at https://bugs.octave.org
Run >> preferences, and in the Shortcuts tab, untick the option at the top "Disable global shortcuts when Command Window has focus". (I don't know since what version it is there.)
If you disable global shortcuts, Ctrl-V (for paste) is disabled because it is a Windows thing.
If you do not disable them, Ctrl-V will work. So will Ctrl-C to copy text, but it will also still work to abort an execution.
If you click on the icon in the title bar on the top left corner of the
window, you'll get an edit option, and you can choose to mark (choose
the text to copy), copy, and paste from there.

How to make Ctrl+V work in CLion

I am having difficulty getting Ctrl+V to paste code in CLion (I am using version 1.1.1 for Windows). When I try to paste code copied using Ctrl+C from e.g. a website or another program, it only seems to work occasionally. Usually it pastes a piece of text that was not the most recently copied.
I use other JetBrains IDEs (IntelliJ IDEA, PyCharm) and have never had any problems with something so basic.
Has anybody else encountered this problem and found a solution to it?
I had the same problem and this is the way I fixed it:
Ctrl+Shift+V (brings up the clipboard history)
Delete all entries
Recopy what you wanted to paste from outside CLion
Try pasting again
Let me know if it didn't work for you so I can see if there is some step you are missing. Hope this helps!
I had the same problem and this is the way I fixed it:
Go to: Settings > plugins and disable 'ideaVim' plugin

get to bottom of page in Chrome with Keyboard-shortcut

I used to get to the bottom of a webpage by pressing CMD+Keydown. Did they remove this shortcut or is it just me?
I know this used to work not too long ago and it's not working since one of the newer versions... (currently Version 31.0.1650.57)
CMD+Keyup still works just fine.
So I finally got around the problem:
An extension I was using got some automatic update, in this it used CMD+Keydown as a shortcut for the extension, which overwrote the default behavior.
The problem hereby was, that the programmer was not done, so he "seized" the shortcut, but was not using it for anything.
Now after more than 2 months, after an other automatic update, the shortcut triggered something in this extension, so I could find out what was causing the shortcut not to work.
Then I just disabled that shortcut for said extension. All working now :D

Unable to set breakpoints in Chrome dev tools, version 26.0.1410.64 m

I need to debug some JavaScript an' I use Chrome dev tools. I'm a newby in JavaScript (just started to learn a couple of days ago), an' at work I could set breakpoints via the Resources pane. But at home for some reason I can't do this: after the click no breakpoint appeares.
I have Chrome version: 26.0.1410.64 m.
What could be the case?
clicking on the De-Obfuscate Source button (i.e. {}) solved this issue for me.
I'm a fool! haha! breakpoints are set in the Source pane )))
It's been a while, but in version 33.0.1750.146, but my problem was that I was on the Sources pane (I'd call this a tab; it's one of the items at the very top of the window), but I was on the Content scripts tab (on the left hand side). I needed to switch to the Sources tab.
To be clear, there are two sets of Sources tabs; one is within the other.
UPDATE 2016-01-07: Now I'm on 47.0.2526.106. The only thing that worked for me today was to close DevTools and re-open. It was a little finicky. It worked once, then stopped, and I had to close the DevTools and re-open again. I saw #johntrepreneur's answer about closing the browser, but unfortunately I have too many tabs open on too many workspaces, so that's too much of a pain, so I didn't try that, although I have to assume that would work.
Other solutions didn't work for me. Had to close and restart browser to be able to set breakpoints again.
This also happens when there is a JS error in your code.
Some sort of weird built in function in windows 10 i think because I did press a few buttons by accident. Some of my keys even stopped working in certain areas of visual studio. F.e the letter "c" stopped working in the find window.
Mine did this and no solution worked, i pressed alt, windows key and function key a few times and my problem went away.
Fixed as follows: For me, the issue stems from having set up Chrome to interact with operating system files. If you set this up, then the fact is evident from a green dot by the file name. At some point, I could not set a breakpoint in a recently edited file. I fixed this by disconnecting the interaction, as follows: When viewing "sources", above the code, there were some file names listed. Clicking the [x] to make the particular filename go away gave a caution message; I proceeded without saving. After that, I was able to set breakpoints for that file.
I also had this problem. However, once I closed the popup message in my browser, suddenly all my breakpoints that I set in that time appeared. Mental note: Don't set breakpoints while your app is showing a popup.
I couldn't find any direct fix for this problem.
It seems that chrome keeps settings of your site stored somewhere whatever you do to clean it. (I tried removing the folder from workspace, closing et reopening chrome etc... and nothing worked).
A workaround is to change your site's url to make chrome consider it a new site

How to make clipboard ring appear in VS2008 toolbox?

It seems as if making the clipboard ring appear in the VS2008 toolbox is pretty elusive. Does anyone know how to turn this on ? Ctrl-Shift-V works fine, but I'd like to see what on the ring.
You should give Ditto a try. It saves everything you put in your clipboard into an sqlite database. A shortcut pops it up and shows the history of your clippings.
The nice thing is that you can instantly search in this window through all your clippings.
I set it up to remeber everything in my clipboard for 60 days and made a habit of copying everything that might be usefull. That way I can quickly find that particular SQL statement, i did last week. Just dont search for "select" ;-)
Try it for some days and you will be amazed. There is also a portable Version
If you drag text to the toolbox doesn't it appear?
It was removed in Visual Studio 2005. I'm trying to find a source for this.

Resources