From within Jupyter Lab, is there a way to launch a file in its text editor from a notebook window? The use case is trying to view source code of an imported package. Ideally I'd like to be able to set some keyboard shortcut to just 'open file' for function under the cursor.
Related
I had Ctrl+N Ctrl+P bound to the command Python:createNewFile but it stopped working after a recent VSCode update (I believe, not sure if it was something else).
Does anyone know the VSCode key binding command to create a new Python file?
Ctrl+N gets me a new text file and I have to select the language or save it with .py for it to be a python file, which is cumbersome since I mostly use VSCode only for python.
I have multiple files open in different tabs in sublime text 3. Is there a way to switch to a tab by the name of the file that's open in it? If there's a different text editor that supports this, it'll be equally helpful. Thank you!
If you open the Goto Anything popup menu by hitting CtrlP, the currently opened files will be listed at the top.
You can also select file tabs at different positions in the tab bar by using Alt#, where # is the file's position - Alt1 for the first file on the left, Alt2 for the second from left, and so on. You can use CtrlPgUp/CtrlPgDn to navigate through the tabs in order, and CtrlTab/CtrlShiftTab to navigate through the stack of recently focused tabs.
All of these options are available under the Goto → Switch File menu. Some of the keyboard shortcuts may be different on macOS.
CudaText editor (free) has the command "Find tab by title" in the plugin CudaExt. Command shows menu with the filter field. To install the plugin: "Plugins / Addon manager / Install".
Often I have the case that I have a file opened in the tabs like item_category.xml here:
The project explorer still shows something else. Any way to open the path to item_category.xml in the project explorer? I already checked the right-click menu of item_category.xml, but couldn't find a matching option.
Use that symbol in the project explorer (shortcut: Alt+F1, 1):
More information on the feature: Locate a file in the Project tool window.
If you don't want to use mouse but keyboard shortcut
First option could be assigning a shortcut to Select in Project View may do the trick. It is located under Keymap/Other.
Second option could be to install Scroll From Source plugin for this. The details are here
Set the keyboard shortcut to the function of "Scroll From Source" in Project Panel. You can set the special shortcut by yourself to all OS(Window/Linux/Mac)
Default shortcut is Command + Control + S for Mac.
I am currently using the Adobe PDF reader control on my GUI and am viewing PDF's with the following code:
OpenFileDialog^ openFileDialog1 = gcnew OpenFileDialog;
openFileDialog1->ShowDialog();
axAcroPDF1->src=openFileDialog1->FileName;
This code is inside of a button pressed function so that when I press the button a file browser opens, when the PDF is selected it opens and can be viewed on the GUI.
Is there a way of automatically opening the PDF every time the GUI is launched so that I do not have to manually browse and find the PDF file?
Find the place to add code to the On Activate event of your UI. In that location set the src property of the Adobe Acrobat control to the path of the file you want to open.
The following StackOverflow question and answer should give you everything you need to embed elements into an exe and find them afterwards with FindResource:
Visual C++ Get a resource's path
I am using Rational Rhapsody for Linux and is wondering if it is possible to configure it to open source code with an external editor instead of the built in editor. I would prefer to be able to edit code using emacs via emacsclient.
According to the documentation the following procedure should set Rhapsody to use an external editor but editing that property has no apparent effect when I attempt to edit the code of one of my classes.
Select File > Project Properties.
Select the Properties tab.
Navigate to the General::Model::EditorCommandLine property.
Click in the property value call in the right column to activate the field, then click the ellipsis (...) to open the Browse for File window.
Browse to the location of the editor you want to use (for example, Notepad) and select the editor. Click OK to close the window. The product displays the path in the property value field.
Click OK.
Have you tried the Rhapsody Eclipse Workflow integration? With that you can open your Rhapsody Model inside Eclipse, and use Eclipse as editor too.
Be careful, not all features from Rhapsody are available this way.
I have only used Rhapsody on Windows, but you have to click the "..." button to get it to break out to the external editor to edit something that showing in the properties dialog. If you want to use the external editor in this way, you have to use one that Rhapsody can execute, and then wait for it to exit, as Rhapsody will create a temp file, open the editor on the temp file, and then import the temp file back into the dialog when you close the editor.