I'm using winPython and Notepad++ and would like to save myself some key strokes by having one key save and also run my code.
I have C:\Users\Robin\Desktop\coding\WinPython-32bit-2.7.10.2\python-2.7.10\python.exe "$(FULL_CURRENT_PATH)" saved onto F6, but when I try to create a macro for CTRL+S then F6, only the saving part gets recorded.
Anyone know why + how to fix it?
Related
When copy a file ".env", I hope to got a duplicated file named ".env 1" not ".env copy"
You can change this behavior by setting the explorer.incrementalNaming to smart.
To do that, do the following:
cmd+,
search for: explorer.incrementalNaming
Change the setting to smart.
Otherwise, if you don't want to change the setting, you can just constantly change the filename after copy is complete. The fastest and most efficient way I found is through the following keyboard commands:
Select file in Explorer
ctrl+c (or cmd+c if you're on a mac)
ctrl+v (or cmd+v)
<enter>
right arrow once
backspace 5 times
then put in 1.
I wanted to remap <C-s> to save a file. It works fine in normal mode. But when I'm in Insert Mode and I press Ctrl+S, it just send the character ^S (as a single character).
I'm using Windows 10 and Powershell to open NeoVim. Is there a way that I can map Ctrl+S to save the file in my current situation? Also should I stick to Powershell or should I switch to another terminal?
I would try remapping it to something like
leave insert mode
save
return to insert mode, after the cursor
inoremap <C-s> <Esc>:w<cr>a
Every time I write a str value in python in VS Code I have to press ESC to avoid writing %%!. I want to just press enter to go to the next line, but I can't because it.
My question is, how can I eliminate it?
I know how to save variables in matlab by this command
save
and load it by this command
load
but the question how to copy history of commands in txt file
save won't save commands, it saves the variables in your current workspace.
MATLAB history is saved in a History.xml file, the directory can be viewed by prefdir command.
For plain .txt command, just press up-arrow, and select-all from the history small list, copy it to whatever place you want. You may find this documentation helpful.
Just in case you do not have access to the admin folders or don't have required previleges,here's a simple method that worked for me,accidentally.
Go to the command prompt
and press CNTRL+A (Select All) and then CNTRL+C(Copy)
You will be prompted that :
It is not possible to show 13xx commands on the screen,
Go ahead anyway.
Then simply CNTRL + V (Paste) everything in any text editor.
Voila!
Hope it helps,
Anuj
I want to create a key board shortcut for inserting time stamp in command history. I follow the standard procedure for creating a keyboard shortcut, however when I press those keys to insert time stamp in command history, nothing happens. Keyboard shortcut is also listed next to the insert time stamp option of command history drop down menu.
On Windows I use PhraseExpress = Free Text Expander for Windows for this and using the #datetime macro.
Advantage: it works everywhere/ not only in MATLAB ;-)