Archlinux shift+numeric keypad - numeric

the problem is that in any application ( Netbeans, Xfce, etc... ) when I want to e.g. check whole text to the end of a line, I use shift+7, ( I'm working on a notebook - don't have separate 'Home'/'End'/..., so I use the numeric keypad ) but on Archlinux it writes just '7' ( same in console ).
Is there any way to disable it??
Thanks in advance for any help.

Turn on numlock by clicking the numlock key on the keyboard and it should work without you having to press shift.

Related

Toggle Comments Keyboard Shortcut (CTRL + /) Does Not Work

I use SAS Enterprise Guide and Teradata Studio Express to code for my day job. WindowsOS.
I use CTRL + / shortcut to comment lines of code out in both apps. Suddenly, this shortcut has stopped working. I've checked all my keyboard and Code Shortcut Key settings in both apps and nothing seems out of place!
All other shortcuts seem to work in both apps, common ones I use like CTRL+C (copy), CTRL+X (cut), CTRL+V (paste) etc
I've got no idea why the 'comment out' shortcut is unable to register. Anyone else encounter this same annoying issue?
CTRL + : will pack your line in /* and */
If you have selected a range, Enterprise Guide will do that with every line from which you selected any character.
CTRL + Shift + : will unpack them
You just have to define it again.
Go to Tools-->options-->Enhanced Editor Keys
Select the Command "Comment the selection...." and press Assign keys
within "Press new shortcut key:" enter the ctrl + : key and press assign

Is it possible to do block-comments in Google Colab?

In Jupyter Notebook, you can toggle/comment a block of selected code with Ctrl + /, but this doesn't work in Google Colaboratory notebooks. Is there a way to comment out several lines of Python code easily in a Colaboratory notebook?
I've looked in the documentation, but I came up short.
In the default Colab keyboard shortcuts, you can block comment text using Ctrl+/.
If this does not work for you, check Tools->Keyboard Shortcuts and search for "Comment Current Line" to see what the shortcut is within your current settings.
You can select the lines of code and press (Ctrl + /) to comment or uncomment your selected lines of code.
You can also use triple single quotes (''') at the start and end of the code block you are interested to comment out.
''' ...Your commented code... '''
If you are a Mac user, you can use Command + / for commenting out, and if you want to uncomment again, select the lines and then Command + /.
For Mac users who don't have an American keyboard like me: it seems like Colab thinks you are using an American keyboard for shortcuts, and so to make the '/' character you have to press the second button to the right of the 'm'. I'll leave an image to explain.
My keyboard looks like this:
As I said, I have to press the . key to make '/' as if I were using an American keyboard.
For Mac users:
first select the lines that you want to comment
second push these buttons: Command + Ctrl + Shift + /
Especially in the Italian keyboard it would be: Command + Ctrl + Shift + 7 (because the "/" character is combined with button "7")
For some reason, I need to do Ctrl + Shift + :.
Which technically is Ctrl + /.
(I use an AZERTYUIOP keyboard.)
if you come here with an Italian keyboard you should press:
command + control + .
When using Mac the keyboard shortcut is ⌘+/.
Note that depending on your layout, / cannot be directly addressed and its combination is different when combined with ⌘. For example, on a German keyboard / is [Shift]+7 but the combination ⌘+/ is ⌘+[Shift]+ß.
When you are unsure about which combination is correct, use the inbuilt keyboard viewer which provides a live view of the meaning of keys while selecting modifiers.
Keyboard Viewer: default keyboard mapping
Keyboard Viewer: modifier keys keyboard mapping

Is there a shortcut to go to the beginning/end of a file in IntelliJ?

I often need to get quickly to the very beginning or very end of a file in the IntelliJ editor. Is there a shortcut key or button that allows me to do this quickly?
I am running on Windows, if that matters.
Beginning of File: Fn + ⌘ + ←
End of File: Fn + ⌘ + →
Note: This answer was posted prior to windows specificity. Leaving it here to include MacOS alternative.
On Windows, you can use Ctrl+Home and Ctrl+End to go to the beginning and end of a file respectively.
The action is called Move caret to Page Top/Bottom, default shortcuts would depend on the OS/Keymap and can be checked here:
On Windows these are Ctrl+Page Up and Ctrl+Page Down.
To find what keyboard strokes are already defined for this, go to Preferences->Keymap and search for text start for jumping to the beginning of the file and text end for jumping to the end of the file. You'll get something that looks like this:
The right column tells you what keystrokes have been mapped to these functions. Feel free to change them to something that you find more intuitive by double clicking on the right column and following the instructions on the pop-ups.
Under preferences -> Keymap, a shortcut for Scroll to Bottomand Scroll to Top can be set.
By default, they are not assigned.
By default in windows the shortcut is
ctrl+end
You can customize the shortcut. To use only end button as shortcut go to Settings -> Keymap -> Editor action -> move caret to text end
Right click on move caret to text end and update shortcut to end
On a Mac, these following keys:
to start of the file:
option + command + [
to end of the file:
option + command + ]
After spending minutes to search on the web, i don't find the answer for just using cmd + up or down. If you are the same, as a quick workaround, you can cmd + a to select all text and press up or down to move it.

How to change key to 'accept' intellisense 'offer' for VB.Net in Visual Studio 2015 (update 3)

When I'm coding in VB.Net in VS2015 I would like to use CTRL+SPACE to select Intellisense proposal when coding. Currently I have to use SHIFT+SPACE and I see no way to change it.
In the preceeding example screenshot it is visible that I have 3 potential options to autocomplete. I can select any of them with key up/down but in order to select the proposal I have following options:
Press 'SHIFT+SPACE' - this will accept the proposal and position the
carret right after the word enabling me to press '(' or whatever else
I want
Press 'SPACE' - this will accept the proposal but it will also
add a white space at the end which is ok for properties/fields but
not good for methods
Press '(' - this will accept the proposal but it
will also add a '(' character at thend which is ok for functions/sub
but not good for properies/fields
Press 'CTRL+SPACE' - this actually does not do anything :(, CTRL on its own makes the Intellisense menu gray-out
In the key configuration window I found the Edit.CompleteWord command:
However this command already has CTRL+SPACE assigned it but it simply does not work. In addition SHIFT+SPACE is not mentioned as one of the keybindings.
Note:
VS2015 does have a flag 'Toggle Completion Mode' but I actually see no difference if this option is checked or not.
you can Use Tab and this will accept the proposal and position the current right after Tab Use space it well show You next Complete Word .

Vimperator, How to hit i_i keystroke to enter Insert-mode

Following is the Vimperator help about the insert mode
I have two questions in this regard
How the key combination i_i should be typed? pressing i key once brings me to ignore mode and twice pulls me out and no trace of Insert Mode.
Also I want to know what are the second series of keyboard combinations which are recomended at the end of each line such as i_< C-] for < C-i>. They show up in gray in oppose to the main shortcuts recommended in magenta.
<C-i> is the key combination. i_<C-i> simply means <C-i> while in insert mode. This is shown in the docs to make it easy to find what a particular key combination does in a given mode.
You can only enter insert mode if you are focused on a text area. Normally when you focus on a text area you are immediately put into insert mode. However, if you use :set noinsertmode then when you focus on a text area you will not initially be insert mode. You can then enter insert mode by pressing i.
If you are not focused on a text area then pressing i will take you in and out of ignore mode.
:help buffer
then you will find [count]gi is what you need.
Actually, press C-t to shift from insert mode to textArea mode, or vice versa, press i. as you know, i_i means press i in insert mode. So, textArea mode can be considered as a sub-mode of insert mode.