Is it possible to open the tools in world menu using shortcuts ?
I am interested especially for Workspace , Browser (without selecting a message) , Finder , Monticello and of course all the others.
On OSX you have (on Windows and Linux you might change Cmd to Ctrl or Alt I never remember):
Monticello: Cmd+O,P
Workspace: Cmd+O,W
Browser: Cmd+O,B
Transcript: Cmd+O,T
Settings: Cmd+O,S
Test Runner: Cmd+O,U
AFAIK there is no shortcut for the Finder, we can assign it Cmd+O,F.
Related
After updating my Ubuntu to 20.04 this night, I noticed that my IntelliJ Main menu is missing.
The Problem is exactly the same as described here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000667510-Main-Menu-not-showing
However:
the SHOW_MAIN_MENU option shows no effect
the shortcut workaround is not working
the View | Appearance: Main Menu action is disabled:
I have tried multiple reinstalls both via snap & zipped standalone. Including purges of ~/.config/JetBrains and ~/.local/share/JetBrains without success.
Invoke Help | Find in action.
Type Experimental features.
Uncheck linux.native.menu.
Make Main Menu reappear IntelliJ IDEA in Ubuntu
System Details:
Ubuntu 20.04.1 LTS
IntellJ IDEA Community 2020.2.3
How the issue was created: I wanted to hide the menu
Steps:
Click View > Appearance
Uncheck Main Menu
Solution to make the menu reappear
Steps:
Open folder: ~/.config/JetBrains
There could be more than one folder. I had two: IdeaIC2020.1, IdeaIC2020.2
Both has configuration xml files for the IntelliJ.
IdeaIC2020.2 seems to be the one with the configuration for IntelliJ.
IdeaIC2020.1 must have been for previous version or previous installation. Even if this is removed, IntelliJ worked.
Open IdeaIC2020.2 > options > ui.lnf.xml
Set value to true : option name="SHOW_MAIN_MENU" value="true"
I hope this helps.
Cheers,
I started using React Native for about 2 weeks, and sometimes I need to reinstall the app, then shake the phone again and enable the live reload.
It's funny at the first week, but then it gets boring to have to shake the phone while developing.
Is there any config file which I can set those development properties to be always enabled?
You can add hot reload function with hold the menu button in your phone
it show the developer menu setting for react native app
after that you can select the hotreload function
or you can type this on your terminal
adb shell input keyevent 82
There's a closed issue related to open the menu by pressing the screen with 3 fingers. You can check if in the latest versions (or in expo) it is working: https://github.com/facebook/react-native/issues/10191
Also there are other 3 solutions:
1) You can run adb shell input keyevent KEYCODE_MENU in your terminal
2) Try this: https://github.com/facebook/react-native/issues/10191#issuecomment-328854286
Open RN dev menu
/usr/local/bin/adb shell input keyevent KEYCODE_MENU Reload RN
/usr/local/bin/adb shell input keyevent 82 /usr/local/bin/adb shell
input keyevent 66 /usr/local/bin/adb shell input keyevent 66 (reload
was not always working without adding the last line)
In Preferences->Keyboard->Keyboard shortcuts you can then map these
services to keyboard shortcuts. I added the shortcuts for the context
of my editor (Webstorm) and React Native debugger. In these programs I
can now press Ctrl+D to show the developer menu and Ctrl+R to reload
which works perfectly.
3) Or you can try this (Android only) https://medium.com/delivery-com-engineering/react-native-stop-shaking-your-phone-1f4863140146
Set up an Automator Service by opening Automator, clicking “New
Document”, and choosing “Service”.
Find and select the “Run Shell Script” action. Choose “no input” for “Service receives” and enter: /usr/local/bin/adb shell input
keyevent 82 If adb is located elsewhere in your system, change the
path to adb. You can find out with: $ which adb
Save and remember what name you give the action.
Open “System Preferences”, go to “Keyboard” and select the “Shortcuts” tab. Select “Services” on the left column and find your
service by name.
Click where it says “none” and enter the keyboard shortcut you want to use. Make it something unique or it will conflict with an existing
shortcut.
Notes: Android only Must be plugged in If you’ve never run the
following with this device, run it first before trying the shortcut: $
adb reverse tcp:8081 tcp:8081
Hope it helps.
run adb shell input keyevent KEYCODE_MENU in your terminal
This may seem like a stupid question, but I really can't find a way to open files from nautilus using jedit. I tried drag n drop and it doesn't work. Couldn't find any plugins in jedit to do this either.
Alternatively, I don't mind just double clicking to open, but I can't set jedit as default text editor application since it doesn't appear in my application list for some reason. So there's no way I can open the files from nautilus.
The only way i can open at the momemnt is either within jedit or in the terminal, but these are really inefficient for me. So it would be great if anyone could give me a hand in solving this trivial problem.
I did some googling and from here http://jedit-devel.narkive.com/3Qsqp2II/jedit-devel-jedit-drag-and-drop-bug-in-gnome, seems like the versions may be affecting this issue. Not sure about this. But here are my facts
java version "1.7.0_65"
jEdit 5.1.0
How about adding jEdit to List of Applications in “Open With” When Right-Clicking Files in Nautilus?
Instructions from https://ubuntugenius.wordpress.com/2012/06/18/ubuntu-fix-add-program-to-list-of-applications-in-open-with-when-right-clicking-files-in-nautilus/
For example, this is my jedit.desktop file:
$ cat /usr/share/applications/jedit.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=jEdit
GenericName=Text Editor
Comment=Text editor for code
Exec=jedit %F
Terminal=false
MimeType=text/plain;
Icon=jedit
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=jedit
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
Exec=jedit
OnlyShowIn=Unity;
If you want to make jEdit the default for opening the particular filetype, you can now right-click one, choose Properties, go to the Open With tab, click on jEdit under Recommended Applications, and click the Set as default button.
Hope this helps.
This should work and works just fine for me.
If you are using the version included in the Ubuntu repository, try changing to our official version in our own repository as described on our homepage.
If you are using the official version, look in your Activity Log for anything suspicious when trying to drag&drop.
Also jEdit should be available as a normal Application and for "Open with Application..." just fine, at least with our official packages.
If all does not work, open a bug in the bugs tracker, then we can maybe help you better than here.
This might be something unique to my wonky machine running Ubuntu 12.04, but I found the line JAVA="${JAVA_HOME}/bin/java" to be the problem.
From a terminal, it resolves to the correct value of /usr/lib/jvm/java-8-oracle/bin/java.
However, from the desktop or launcher bar, it resolves to /com/home/users/current/local/java.
Maybe someone more learned than I can explain this, but my solution was to edit the file at /usr/local/bin/jedit, replacing the last line:
exec "${JAVA}" -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar "/usr/local/share/jEdit/5.3.0/jedit.jar" -reuseview "$#"
With:
exec "java" -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -jar "/usr/local/share/jEdit/5.3.0/jedit.jar" -reuseview "$#"
This only works if the JVM is set up properly.
I want to run Play Framework 2.x in debug mode in IntelliJ IDEA. I searched in the Internet and all results say that you have to use play console.
Is it possible to run in debug mode in IntelliJ IDEA without using play console?
Using activator :
From Terminal (Not intellij terminal), enter command : activator ui
Open your existing app
Choose "Code view & Open in IDE
In Browse Code, click setting icon
Choose Open Project in Intellij IDEA
Generate
Open Intellij IDEA
Open project - browse your app directory
Run - Edit Configuration
Add new configuration - Remote
Add name
Setting
transport : socket, debugger mode : attach, Host : localhost, port : 9999
module clashpath : your app
Tools - Open Terminal
activator -jvm-debug 9999 run
Run debug
Open browser localhost:9000
You need to use Idea 12+ Ultimate Edition
Install Play 2.0 Support, Scala and other required plugins in Idea
In command line perform play idea to generate project
Open created project in Idea (open, don't import)
Go to: Menu > Run > Edit Configurations... > Add New Configuration... > choose Play 2 App
In Menu > Run new buttons will appear Debug and Run, first will run app with enabled debbuger.
Preparation: Do not use the project creation by activator ui or similar. Just
open the project in IntelliJ.
activator -jvm-debug 9999 ~run. The ~ before run enables automatic reloading of generated HTML pages
In IntelliJ:
Run > Edit Configurations...
Select Defaults/Remote
Click on the green + at the upper left corner
Give the name "Play 2"
Ensure that Transport:Socket and Debugger mode:Attach are selected
Type in 9999 as port
Press "OK"
Run > Debug Play 2 (second entry in the list)
Pro hint: Check out the play-auto-refresh plugin to have Chrome automatically reloading on a change.
(based on #ARM's answer)
Open Intellij IDEA
Open project - browse your app directory Run - Edit Configuration
Add new configuration - Play2
Add http://localhost:9000 to url to open option
Add -Xms512M -Xmx1024M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M to JVM option
Set Debug port to 9999
Set your debug point and debug your application. Cheers :)
FYI : All of the above fields might filled up already
this works for me and maybe easier
file menue => settings => Build, Execution, Deployment => sbt => check "Enable debugging for sbt shell"
idea sbt shell now will start with debug enable, log out the port as "Listening for transport dt_socket at address: 52701"
Run/Debug Configurations => Add(the pluss(+) sign) => Remote => Set "Port" And "Use module classpath"
just type run in sbt shell, then click debug button
screent shot
enable idea emaded sbt debug
sbt shell start log
add remote in "Run/Debug"
type run here
How to do debug in OpenERP v7?
In previous versions of OpenERP, it was easy to debug. But in the latest version it's tough to debug.
To debug your OpenERP+python code in eclipse, start eclipse (helios/indigo only) in debug perspective and follow the given steps:
1: Stop your openERP running server by pressing "ctr+c".
2: In eclipse go to Menu "Run/Debug Configurations". In configuration window under "Python Run", create new debug configuration(Double click on 'Python Run').
3: After creating new debug configuration follow the given steps:
3.1: In "Main" tab under "Project", select the "server" project or folder (in which Openerp Server resides) from your workspace.
3.2: Write location of 'openerp-server' under "Main Module".
Ex: ${workspace_loc:server/openerp-server}.
3.3: In "Arguments" tab under "Program Arguments", click on button "Variables" and new window will appear.
3.4: Then create new "Variable" by clicking on "Edit Variables" button and new window will appear.
3.5: Press on "New" button and give your addons path as value.
Ex: --addons ../addons,../your_module_path
3.6: Press Ok in all the opened windows and then "Apply".
4: Now into "PyDev Package Explorer" view go to 6.1/server and right click on "openerp-server" file, Select 'Debug As --> Python Run'.
5: Now in "Console" you can see your server has been started.
6: Now open your .py file which you want to debug and set a break-point.
7: Now start your module's form from 'gtk' or 'web-client' and execution will stop when execution will reach to break-point.
8: Now enjoy by debugging your code by pressing "F5, F6, F7" and you can see value of your variables.
You can refer following link: Debug OpenERP Code from Eclipse
Go to Administrator(in right top corner) in that click on About OpenERP in that you will find a link Activate the Developer Mode.
or
you can add a parameterdebug in of URL like
http://localhost:8069/?debug
both the way will let you open the developer mode.
You can also use the Odoo Debug pro chrome extension to toggle the developer mode using the keyboard shortcuts.
To debug openERP 7 from eclipse just Stop openERP server and rename the main file named openerp-server.py.From "Run/Debug Configurations" make a new configuration selecting Project and main module such as ${workspace_loc:openerp7/src/openerp-server.py} then press Apply.After that /openerp7/src/openerp-server.py 'Debug As --> Python Run' using new configuration.Server is running where pydev debugger is also started.Now run 'gtk' or 'web-client'.Then select the python file of that module where want to debug and give breakpoints.That's all.
Debugging is quite simple in interface.
For Programmers
By Default when you login to openerp, your url will look something like this
http://localhost:7373/?db=Test_July_25#menu_id=107&action=97
Edit the url and add debug=&
localhost:7373/?debug=&db=Test_July_25#menu_id=107&action=97
For Functional Users
Navigate mouse to top right corner and select About OpenERP
Now Activate Debug Mode
You Should be done now with interface debugging.
For Code Debugging (along with arya's method these images may help you)
You can use browse button to select the project and the openerp server file
Finally place breakpoints in your code where ever necessary
Navigate through
administrator(top Right)>>about OpenERP
Dialog Open Click on Activate Developer mode
Their is more complexity and less control by adding more fancy tools try and go low level and use python pdb and if you are debug geek then use winpdb with pdb which gives extreme contorl over your code navigation.
And for simple value abd flow use print or pprint module from python.
Bests.
Start debug mode on browser ??
In URL you can type ?debug after web
OR
go to About OpenERP select Activate Developer Mode
If You want to debug from eclipse then
go to PyDev Package Explorer --> openerp(odoo) --> Right click on openerp-server file
Select Debug as --> Python Run
It will ask for change current perspective from PyDev to Debug click "Yes" and its Done
Activate the Debug mode and use some print statements to debug the variable values