How to show hexdecimal view of integers in Clion and PyCharm? - debugging

I found this help https://www.jetbrains.com/help/clion/using-hexadecimal-view.html
but it relies on long keystroke to call maintenance popup, which is probably not working on my machine (a lot of keystrokes not working).
Is it possible to call this setting w/o keystroke?

I'm using the following trick. In the Variables view add ".hex()" for bytearray

You can call Help | Find Action (or press double Shift) and search for 'Maintenance'.

Related

Mac OS option key shortcuts not working, how to make it work?

I have a very long line which I want to view as wrapped.
There is an option called word wrap that can help me achieve this.
Anyhow the shortcut method option + z doesn't work, instead inserts a ˀ there.
Any solutions?
Looks like one of your extension might be overriding your VSCode config. Try ⌘+SHIFT+P/CMD+SHIFT+P and then search for View: Toggle Word Wrap/Toggle Word Wrap.
You will then be able to see the shortcut assigned to that command on your local PC. Alternatively, ⌘+SHIFT+P/CMD+SHIFT+P and search for Keyboard Shortcuts. In there search for OPTION+z and check for the answers which pop up.

Customize windows hotkeys

My question is about a way to speed-up everyday writing. I'm often required to repeat certain text-snippets in different forms. One way is to use:
Ctrl-C and Ctrl-V
but I want to keep the Ctrl-C for temporary text-snippets and be able to create a custom hotkey where I predefine the text that I can paste, e.g. if I press Ctrl-T, while having the mouse in the url-entry in a browser, a string like "hi, I hope you are well!" will be pasted. I have been looking into using the windows powershell, but I'm not experienced enough to do this...
Thx for any help (be gentle, this is my first question!) and thx for all the help throughout the years :)
Ahh it seems #EBGreen's idea did provide a good answer! Thanks :) Here is what I found:
^j::
Send, name.surname#company.com
return
binds Ctrl+j to the string "name.surname#company.com", when using the autohotkey-language.
Check out https://autohotkey.com/ for more details!

How to Move the mouse using VBScript

I am trying to move the mouse using VBScript. I tried to use Sendkeys "{CLICK LEFT , x , y}" and Sendkeys "{MOVETO, 10 , 20}" but it isn't working i also tried to use MouseKeys, so i could move it with the keyboard and therefore use Sendkeys to activate it but it also did not work (the mousekeys numpad is not moving the mouse). I've tried everything I know and what i could research elsewhere, so now I hope one of you can answer this for me. thxs
One possible way to move the mouse is:
Dim Excel: Set Excel = WScript.CreateObject("Excel.Application")
Excel.ExecuteExcel4Macro "CALL(""user32"",""SetCursorPos"",""JJJ"",""xxx"",""yyy"")"
-->xxx = X Position
| yyy = y Position
The only disadvantage is that you need Microsoft Excel to run this script...
Hope I could help you
VBScript can't do this natively. You'd have to do some calls to the Windows API or some other library that can do this for you.
As an alternative, you may want to consider a different scripting language, like AutoHotKey which can do this in one simple line of code for you.

Configure a code snippet to auto-expand? (Extensions are fine)

Is it possible to create a code snippet that expands automatically the instant I type the last letter of its "shortcut" (without requiring me to press Tab twice, etc.), and if so, how do I do that? Right now I'm getting by by having configured a more convenient keystroke for Edit.InvokeSnippetFromShortcut, but it's still a keystroke I don't feel the need for (for a small set of snippets).
(I have no problem installing an extension if necessary to make snippets better, including something I'd have to buy.)
What you are looking for is probably a Macro - MSDN Info on Macro Usage.
You can either create a macro which types the snippet and press tab twice, or create the snippet code through it.

What is the most efficient way to cut/paste in Visual Studio?

I find that I am cutting and pasting a LOT when I program. For example, method, variable and class names are things I regularly cut/paste. I do use "ctrl+space" after typing part of a word to autocomplete them or popup intellisense when there's duplicates found.
But just for straight copy/pasting do you guys have any good shortcuts/tricks/tips to use?
I already use these shortcuts as I program but I wonder if I am missing anything?
ctrl+x (with nothing selected)
ctrl+v (with nothing selected)
ctrl+l (with nothing selected)
ctrl+shift+arrowKeys
If I could copy/paste quicker I think I'd be able to write code quite a bit faster.
In Visual Studio has multi-paste.
pressing Ctrl+Shift+V allows you to paste any of the 10 last things you cut/copied.
Install and learn ViEmu.
I have more of a hardware solution. On my MS 4000 keyboard I have the back and forward buttons right under the space bar bound to copy and paste respectively. This actually makes copying and pasting much easier than I thought it would when I first did it.
I use ClipX, which gives you system-wide multi-paste. You can paste any of the last [configurable number] of things in your clipboard. You can also save "favourite" items, which stick on the list forever.
Shift + Page Up/Down to select everything below/above the cursor.
If you're not using ctrl+shift+arrow to select whole words/lines, then that can help a lot.

Resources