Show hints when writing function - android-studio

sometimes when I write function in AndroidStudio/Intellij the hint disappear. How to restore it with a keyboard shortcut?
Screenshot below.

For Windows, you can follow these steps:
File >> Settings >> Editor >> General >> Code Completion
You can enable Basic Completion and Smart Type Completion.
For Mac OS, you can change the keyboard shortcuts.
System Preferences >> Keyboard >> Shortcuts >> Spotlight
You can disable Show Spotlight search and assign a new key.

Related

Can VSCodeVim Ignore Windows Key Combination?

I have Windows+I set as a keyboard shortcut to open up chrome, but if I try to use that while keyboard focus is on VSCode with vscodevim enabled, it treats it as if I had just typed I by itself (and enters insert mode).
I'm running mate desktop manager on Arch Linux. The Win-I shortcut is set through system -> preferences -> hardware -> keyboard shortcuts.
I've tried adding the following to settings.json:
"vim.handleKeys": {
"<T-i>": false
}
I've also tried <Win-i>, <T-I>, <Win-I>, <Mod4-I>.
Is there a different syntax to specifiy windows key being pressed? Or a different way to have ideavim register that it's pressed and ignore the input? The key is displayed as Mod4 in the mate keyboard shortcuts menu.
I know I can map the chrome shortcut to something else like Alt+F3, but I'm hoping to keep it as Win+I if possible. Any help appreciated!
Try adding the following setting:
"keyboard.dispatch": "keyCode"
Restart vscode after that.

Cygwin shortcut to start xterm

I've been using cygwin for very long time. Back in the day, we used to be able to create a shortcut and it automatically starts X and starts an Xterm with the preferences saved in a file.
Today, I'm finding myself launching xlaunch, and then clicking throw a few dialogs to start xterm. Is there a way I can shortcut all this and just click one shortcut to get the result?
Thank you
Solution using startxwin that belongs to xinit package
Create you customized script from the baseline:
cp /etc/defaults/etc/X11/xinit/startxwinrc ~/.startxwinrc
remove a bit of the duplication at the begin of ~/.startxwinrc
to avoid a recursive call and at the end add how many xterm calls
you want before the Menu manager.
/usr/bin/xterm &
exec /usr/bin/xwin-xdg-menu

How to close the small editor window when injecting language reference in intellij?

As suggested by this document, I'm using language injection feature to edit strings with intellij.
But my problem is even after my work done and un-injecting the language reference, (as per '7.' mentioned in the documentation), the small editor window appearing (which can be seen by '6.' in the documentation) is still not getting closed.
Is there any key combination or any other way to close it easily?
You can use the standard window close shortcut (applicable to any windows within IntelliJ) usually this is CTRL F4 but you can work out what your mapping is by having a look at Preferences > Keymap > Window > Editor Tabs > Close.
Or - less conveniently - you could click the x close icon in the fragment editor tab.
Hitting the ESC key to close the Edit Fragment window sounds appealing but that was rejected.

Centre code in Android Studio/IntelliJ IDEA editor

I would like to centre my code in the Android Studio's/IntelliJ's editor, like as it is done in the Distraction Free Mode.
Right now, it is always aligned on the left side of the editor, but I want to have it in the centre of the window. I could not find any option for this in the settings. Is this possible without entering the Distraction Free Mode?
Add -Deditor.distraction.free.mode=true in Help | Edit Custom VM Options and restart the IDE. This will center the editor without the other features of the distraction free mode (like hidden tool windows).
You can also activate this option through the registry:
Type shift shift to search everywhere
Type registry and select "Registry..."
Type distraction to filter the list
Check the box for "editor.distraction.free.mode"
Close the registry
Voilà, no restart needed.

Shortcut for deleting a line in dreamweaver?

What is the shortcut for deleting the current line where the cursor positioned.
ex: eclipse have crtl+d
To delete line(s)
Mac: Command+Shift+D
Windows: Ctrl+Shift+D
https://helpx.adobe.com/dreamweaver/using/keyboard-shortcuts.html
There are no direct shortcuts as far as I know but here is a list of commands for dreamweaver.
http://cpaoffers.com/design/dw-shortcuts.php
My typical method to do this is to hit the home > shift+end > del.
Or you could try shift+up or shift+down to select the line above or below and then hit delete.
Danilo Celic's answer helped me with CS6, just use the second one. Although it's in Japanese, just install and use it.
If you want to know more: Then, find the installed files in your own
C:\Users\[your user name]\AppData\Roaming\Adobe\Dreamweaver CS6\[your CS6 language]\Configuration\Commands
There you can open the just-installed files and check them. The comments are in Japanese. The code are in Javascript and are easy to read.
There are 5 commands in that file. To use only the "Delete line" function: In CS6, open history panel, go to design mode, do any action like press a key, right click on that action from history panel and record that action. Then you can find the record action in the Commands folder mentioned above, and then you can copy the javascript from the downloaded one into your own recorded action file.
I've seen two extensions that add the delete line functionality:
http://xtnd.us/dreamweaver/codeextras
http://yoropan.com/en/archives/544
I haven't used either one. I've been told that the first one may not work in Dreamweaver CS6, no idea about the other one. once installed, you should be able to add a keyboard shortcut (Edit -> Preferences, Dreamweaver -> Preferences on Mac) for functionality that you're looking for.
You can add a custom keyboard shortcut for deleting lines in Dreamweaver.
Dreamweaver uses Brackets for its text editor, and this is what handles the Delete Line command, not the traditional Menu system for rebinding most other Dreamweaver commands.
Create a Brackets keyboard shortcut configuration file.
Windows: %APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Brackets\keymap.json
Mac OS: ~/Library/Application Support/Adobe Dreamweaver CC 2019/en_US/Configuration/Brackets/keymap.json (untested)
Create an override in this file, according to the Brackets User Key Bindings JSON Data Format. Make sure you use the - separator between key names, not +.
{
"overrides": {
"Ctrl-E": "edit.deletelines"
}
}
Rebind any conflicting keyboard shortcuts in Dreamweaver. In my Ctrl+E example above, it collides with Quick Edit.
In Dreamweaver, go to Edit → Keyboard Shortcuts.
Make a new Set if you're using the default Dreamweaver Standard Set.
Find the command you want to change. Quick Edit is in the Code Editing section.
Highlight the shortcut you want to modify.
If you want to unbind that shortcut, click the - button.
Otherwise, rebind that shortcut by typing the new shortcut in the Press Key field, and then clicking Change.
Click OK to save your changes.
If your change is not persisted, you can usually fix this by editing the following files.
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\Custom Sets\*.xml
%APPDATA%\Adobe\Dreamweaver CC 2019\en_US\Configuration\Menus\menus.xml
Restart Dreamweaver for your new Brackets keyboard shortcuts to be read.
To bind other commands besides Delete Line, see the full Brackets Shortcuts command ID column.
I used these steps with Adobe Dreamweaver 2019 (19.2) on Windows.

Resources