copy-paste

Visual Studio copy/paste into Outlook with standard formatting?

≡放荡痞女 提交于 2019-12-03 05:46:32
I have custom settings in Visual Studio that include a dark background. Copy/pasting to Outlook produces a crime against eyeballs with a dark background in code on a white background of the mail. Does anyone have any ideas of how I can paste code in standard VS formatting (NOT unformatted text from paste special, and not paste with my custom VS formatting)? (Alternatively, does anyone know a quick way to switch between themes in VS? Thinking that could also work...) The following blog post details how to address this issue in VS2012: http://codinglifestyle.wordpress.com/2013/05/17/copy-and

Fastest way to move files on a Windows System [closed]

谁都会走 提交于 2019-12-03 05:38:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I want to move about 800gb of data from an NTFS storage device to a FAT32 device (both are external hard drives), on a Windows System. What is the best way to achieve this? Simply using cut-paste? Using the command prompt ? ( move ) Writing a batch file to copy a small chunks of data on a given interval ? Use some

How to convince a colleague that code duplication is bad?

孤街浪徒 提交于 2019-12-03 04:45:52
问题 A colleague of mine was implementing a new feature in a project we work on together and he did it by taking a file containing the implementation of a similar feature from the same project, creating a copy of it renaming all the global declarations and slightly modifying the implementation. So we ended up with two large files that are almost identical apart from renaming. I tried to explain that it makes our project more difficult to maintain but he doesn't want to change anything saying that

SharePoint list event receivers not firing when copying and pasting using explorer view

巧了我就是萌 提交于 2019-12-03 02:54:09
Here's the deal, I have various event receivers registered to a document library: ItemAdded ItemAdding ItemFileMoved ItemUpdating These event receivers work as expected in all cases, APART FROM copying and pasting into explorer view. It's worth noting that the event receivers do fire off when MOVING from explorer view into explorer view! Has anyone else experienced this? Is there a way to fix this? Workaround: Create a SharePoint Designer Workflow, attach it to your Doc Library. Make it run when the item is changed or updated Give it a simple step with the following Action (no conditions)

How to send interrupt key sequence to a Java Process?

拥有回忆 提交于 2019-12-03 02:45:46
I've got a handle to a Java Process instance and its associated streams. It's a console program. I'd like to simulate a break sequence. On Windows this is Ctrl-C. Is this possible without natives? The reason for doing this: the console program is a command-line console itself, controlling a virtual machine for another language. The user can run another program from this console program. While a program is running, the break sequence will interrupt execution of the underlying program and cause the console program to go into debug mode. We are Java-wrapping this console debugger so that it can

Copy to clipboard as plain text

南楼画角 提交于 2019-12-03 02:29:40
I'm using this code in background.js in a Chrome extension to copy text to the user's clipboard: chrome.runtime.onMessage.addListener( function(request, sender, sendResponse) { if (request.command == "copy") { executeCopy(request.text); sendResponse({farewell: "copy request received"}); } } ); function executeCopy(text){ var copyDiv = document.createElement('div'); copyDiv.contentEditable = true; document.body.appendChild(copyDiv); copyDiv.innerHTML = text; copyDiv.unselectable = "off"; copyDiv.focus(); document.execCommand('SelectAll'); document.execCommand("Copy", false, null); document.body

unable to copy/paste in mingw shell

人盡茶涼 提交于 2019-12-03 01:45:35
问题 I just installed MinGW on Windows and I'm unable to copy/paste as I am used to on Linux or even PuTTY. What is the trick for copying and pasting text (e.g. from chrome) into MinGW shell? 回答1: Right-click on the title bar of the command window and select 'Properties', then on the 'Options' tab tick the box for the 'QuickEdit mode', then click 'Ok'. After that you can paste text from the clipboard using the right mouse-button, highlight text while holding down the left mouse-button and copy

How to paste text to end of every line? Sublime 2

走远了吗. 提交于 2019-12-03 01:29:04
问题 I'm curious if there is a way to paste text to the end of every line in Sublime 2? And conversely, to the beginning of every line. test line one test line two test line three test line four ... Say you have 100 lines of text in the editor, and you want to paste quotation marks to the beginning and end of each line. Is there an easy way to do this or a plugin that anyone would know of? This would often save me a lot of time on various projects. Thanks. 回答1: You can use the Search & Replace

copy all files and folders from one drive to another drive using DOS (command prompt)

情到浓时终转凉″ 提交于 2019-12-03 01:12:22
问题 i want to copy all files and folders from one drive to another drive using MS-DOS. How to do it? I am trying xcopy I:\*.* N:\ But it copies only files, not folders. So how to copy all files and folders both? Thanks. 回答1: Use xcopy /s I:\*.* N:\ This is should do. 回答2: xcopy c:\ d:\ /h/i/c/k/e/r/y Use the above command. It will definitely work. In this command data will be copied from c:\ to D:\, even folders and system files as well. Here's what the flags do: /h copies hidden and system files

Copying a UTF-8 URL from browser's address bar, gives only the ugly encoded one

北城余情 提交于 2019-12-03 01:09:54
问题 When I copy a UTF-8 URL from the browser's address bar (almost any browser on any os), then try to paste it in another text field (to post it on facebook or twitter for example), it gives only the decoded URL, which makes it ugly. For example, in the address bar, the URL appears like this one: https://www.chaino.com/وذكر But when trying to copy and paste it in any other place, it gives the following ugly url: https://www.chaino.com/%D9%88%D8%B0%D9%83%D8%B1 & if I wanted to get the original