How can I make "Windows Metafile" my default paste special option in Word 2007? - ms-word

I am doing a lot of copying from Visio to Word 2007. I have found that Windows Metafile is the most space efficient choice of the Paste Special options available. How can I make "Windows Metafile" my default paste special option in Word?

I was also looking for this but MicroSoft knows that nobody needs this and so it seems not to be possible. If you dare to disagree with the wisdom of Microsoft, you have the option of a workaround - like I did ...
Create a macro (obviously you find the macros in the View and not the Developer ribbon ...):
Sub PasteSpecialMetafile()
Selection.PasteSpecial Link:=False, DataType:=wdPasteEnhancedMetafile, _
Placement:=wdInLine, DisplayAsIcon:=False
End Sub
And then assign a special shortcut (simply and intuitively via File -> Options -> Customize Ribbon -> Keyboard Shortcuts: Customize) to the macros.
There might be a command which directly opens the PasteSpecial dialog ... but this is well hidden.
The macro works only, if the clipboard content can be converted to a metafile (and you get an error when the clipboard contains text). So there is room for improvement :)

Just FYI, default shortcut for the PasteSpecial is Ctrl+Alt+V. Full list of MS Word shortcuts is available in the Word Help, here is the direct link for convenience.

Thank you for your answers. They were very useful.
It worked in Word 2003 as well :).
I found another way. After you do all the clicks to do the paste special\picture(metafile) and paste your first picture, copy the next one (from excel or any other place) then go to Word and press Ctrl+Y to repeat the previous command.
Don't do anything else after you do the paste special in Word, the final action needs to be the paste special\picture.

Related

VSCode IDE messes up RTL strings after selecting

Recently, I had to reinstall windows 11 on my machine. So, after that, I had to install VSCode again (therefore, I have the most recent version of VSCode).
Now, whenever I select any Persian sentences (strings) in my code, the IDE shows a messed-up string that is far away from the correct one. I can not show the correct and incorrect sentences as texts here because copying and pasting results in the correct format. Therefore, I have to provide them as images. (Sorry for any inconvenience, in advance)
Correct Persian Sentence
Incorrect Persian Sentence (After selecting)
This might be a little bit tricky to understand for people who are not familiar with the Persian Language. The difference can be understood by looking at the first word after $creatorId in both images.
This also might happen if we wanted to write in Arabic or other right-to-left languages.
It would be highly appreciated if you could suggest anything to avoid this.
After searching a lot, I found the proper answer on one of the VScode repository's issues. The problem was with the way the new version of VSCode renders the whitespace. So, to solve this problem, you need to follow the below steps:
Open VSCode command pallete by CTRL + SHIFT + p
Search for Open Settings (JSON) and click on it. It should open a JSON file named setting.
In this JSON file, add a key named editor.renderWhitespace and assign on of the following values to it: boundary, trailing or none. Your JSON file should look something like this:
{
"editor.renderWhitespace":"boundary"
}
The weird messed-up string is disapeared now.
Note
You can also access and change the editor.renderWhitespace using the settings editor. So, if you find the steps mentioned above frustrating, just use the settings editor (you can open it using the setting icon at the right end of the VSCode window or even using CTRL + ,) and search for editor.renderWhitespace. Then choose one of the three above-mentioned options.

VS Code, Syntax highlighting Powershell

Ive been scratching my head with this one. Previously VS Code highlighted Powershell scripts and modules just fine with highlighting functions in yellow and variables $var in light blue. Both as part of a string and "stand-alone". However, suddenly it doesn't highlight functions or variables anymore? I've tried to uninstall and reinstall the powershell extension from Microsoft, as well as disable and re-enable the built in language support for powershell.
I've not been able to find any support regarding this issue and hope that I might be able to find it here.
Have you tried this?
File Association.
Basically:
The easiest way I've found for a global association is simply to Ctrl+k m (or Ctrl+Shift+P and type "change language mode") with a file of the type you're associating open.
In the first selections will be the option "Configure File Association for 'x' " (whatever file type - see image attached). Selecting this gives you the option to choose the language and will then make the filetype association permanent.
if you start your code block with a ```PowerShell it will highlight the syntax properly.
I've noticed that you may also need to end your code block with a ``` in VSCode specifically.

Eclipse. Fuzzy search in Quick Switch Editor

Using Quick Switch Editor (ctrl+E) in Eclipse allows one to navigate trough currently open tabs.
Thing that bugs me is: you must use wildcard (*) to performe fuzzy search.
It looks like it's more convenient to use Open Type (ctrl+shift+T) functionality that support fuzzy search then Quick Switch Editor.
Is there any Eclipse configuration that I miss or plugin that will make my life better?
Kind regards.
I use AutoHotKey to automatically type * whenever I press Ctrl+E, which ends up being essentially the same as Quick Switch Editor using wildcard by default.
AutoHotKey Script:
#IfWinActive, ahk_class SWT_Window0
~^e::Send {*}
You could also set up something similar for "Open Resource" (Ctrl+Shift+R) and "Quick Outline" (Ctrl+O).
Quite some time past since I asked this question, but I think I have something to add now.
GotoFile plugin, I believe is good solution to above problem. It will perform fuzzy-search on all WorkSpace projects.
As it is it doesn't quite address 'navigate trough currently open tabs' problem, but I decided to improve it a bit. For example, if search term starts with '.' it will prioritize open tabs (search will be performed on all files, but open will appear on top; '.' itself will be ignored). Case sensitive fuzzy-search (with 'In' search term resource IndexPage.java will have priority over index.js). On startup -- just display list of currently open tabs (like Ctrl + E currently does).
Basically idea is to have 'single point of access' for QuickSwitchEditor, OpenType and OpenResource functionality. true, it will not replace them, but eliminate 90% of everyday use.

How to filter scripts by name in Chrome's Developer Tool "Scripts" Tab

Some sites have many scripts. For example orionhub.
In such a case Chrome's Developer Tools become a little bit confusing (See Picture).
Is there a way to filter the shown scripts, for example by name?
edit: I found that when I am in the "Scripts" Context I can start typing and the first script matching the word I typed so far will be selected.
That's OK, though it would be even more helpful if that feature would support matching sub strings and wildcards.
Try pressing Ctrl/Cmd+O for an "Open Resource" dialog. It allows to quickly search file by name and supports camel case search (type yAS for yetAnotherScript).
You can see other useful shortcuts by pressing '?' in Developer Tools.

How can I enable auto complete support in Notepad++?

I am trying to add simple syntax highlighting and auto completion for a simple scripting language...
I added syntax highlighting using this article
Now I want to know how to enable auto completion with Notepad ++ for my custom language. Does anyone know how to do that?
The link provided by Mark no longer works, but you can go to:
Notpad++ 6.6.9
Settings -> Preferences -> Auto-Completion -> Enable auto-completion on each input.
I find it very annoying though, since a big autocomplete block is always coming up and I would just like to see autocomplete when I press tab or a key combination. I am fairly new to Notepad++ though. If you know of such a key combination, please feel free to reply. I found this question via Google, so we can always help others.
For basic autocompletion, have a look at the files in %ProgramFiles%\Notepad++\plugins\APIs. It's basically just an XML file with keywords in. If you want calltips ("function parameters hint"), check out these instructions.
I've never found any more documentation, but cpp.xml has a calltip for fopen, while php.xml is quite complete.
Go to
Settings -> Preferences -> Backup/Autocompletion
Check Enable auto-completion on each input. By default the radio button for Function completion gets checked, that will complete related function name as you type. But when you are editing something other than code, you can check for Word completion.
Check Function parameters hint on input, if you find it difficult to remember function parameters and their ordering.
Autocomplete in Notepad++ is as simple as hitting Ctrl + Enter or Ctrl + Space in the interface.
Ctrl + Enter - as simple as that!
This, for many people, will be better than autocompleting on everything.
Don't forget to add your libraries & check your versions. Good information is in Using Notepad Plus Plus as a script editor.
You can also add your own suggestion.
Open this path:
C:\Program Files\Notepad++\plugins\APIs
And open the XML file of the language, such as php.xml. Here suppose, you would like to add addcslashes, so just add this XML code.
<KeyWord name="addcslashes" func="yes">
<Overload retVal="void">
<Param name="void"/>
</Overload>
</KeyWord>
It is very easy:
Find the XML file with unity keywords
Copy only lines with "< KeyWord name="......" / > "
Go to C:\Program Files\Notepad++\plugins\APIs and find cs.xml for example
Paste what you copied in 1., but be careful: Don't delete any line of it cs.xml
Save the file and enjoy autocompleting :)
Open Notepad++ and Settings -> Preferences -> Auto-Completion -> Check the Auto-insert options you want.
this link will help alot: http://docs.notepad-plus-plus.org/index.php/Auto_Completion