How to dock open files in tab format on top in Jedit - jedit

Currently my open files display in a drop down menu in Jedit, and I would like to change the display to tabs.

There is a plugin named BufferTabs.You can install it from the plugin manager. You have to enable it in your plugin manager to be on by default.
You can configure the docking location of Plugins under the global Options menu item in the top dropdown menu.

In jEdit click on
Plugin Manager -> "click Install" tab
This will list the available packages to install
-- Select BufferTabs to install tab options

Related

Add file to package IntelliJ

I have the following packages in my application:
Now, I want to add a file in the templates package.
How can I achieve this in IntelliJ? I can only add files in the templates.pages package.
You select the resources folder, then you create a new file and type templates/thenameofthefile.
Or you click the gear icon at the top-right of the view and you de-select the option "Compact middle packages".

How to remove material theme (or reset to defaults) from IntelliJ / PyCharm?

I have installed Material Theme UI and it made my IDE blackish. Later I decided to remove and and removed plugin. Unfortunately, this didn't give default colors back, some parts of IDE, for example Project pane, remained blackish.
How ro recover?
How to remove material theme from IntelliJ / PyCharm?
you can go to the Preferences->Plugins on the search bar, type Material UI
then press on the Uninstall button .
You should:
Go to Settings->Plugins and remove Material UI plugin
Switch to Default theme in Settings->Editor->Color Scheme
If it does not help (it happened to me) and you still have some colors/fonts from removed Material UI - looks like Material UI theme override some default colors. You should then close Intellij, go to Intellij config folder (on Windows it is C:/Users/<your username>/.IntellijIdeaXXXX.X/config) and remove this config folder and restart Intellij. It should show you a dialog window to import settings from previous version or use defaults (like when you install Intellij and make the first start). After that everything will be switched to default colors/fonts.
From the material-theme-jetbrains repo:
File Colors stuck after uninstallation The File Status Colors feature
is also a feature that sticks outside of the realm of the plugin as it
modifies the IDE itself. Therefore when uninstalling/disabling the
plugin the colors will stuck.
If you want to reset to the default colors, open the Settings at
Version Control -> File Status Colors in 2017.3+. In previous
versions, you will need to go to the config directory and delete the
_#user_Darcula.icls color scheme manually.
None of these worked for me as an acceptable solution. So here is what I figured out:
Go to plugins, uninstall Material UI.
Ensure colour scheme is Default/Darcula.
Restart Idea.
At this point most changes were back to default, but some things like colour of current tab, error highlights, modified files etc were still not back to usual. So I followed the advice of deleting config and things returned to normal. But with this option you lose everything, even the installed plugins. And worst thing was, I was using a settings repository to sync settings, few minutes later the colours were back! So I did a diff with older config directory and then a git log revealed that these files are the culprits.
Delete these 4 files from this path: .IntelliJIdea<version>/config/settingsRepository/repository/
colors/_#user_Darcula.icls
colors/_#user_Default.icls
material_custom_theme. xml
material_theme.xml
Then do a git commit and git push to ensure these are synced to your repository. And finally theme was back to normal!
Unfortunately whatever I was doing from the settings, I've couldn't get rid of that theme. So I uninstalled the program and reinstalled it again without material theme. Hope there will be better solution.
Tested with intellij 2018.3 go to settings->Type material then untick the material theme after that restart ide should fix the issue.
A tad brute force, but you could try and delete the theme directly.
Close IntelliJ
Go to: ..\JetBrains\themes
Delete Material UI
Open IntelliJ
Press Command + , (comma) (Shortcut to preferences) and search for material. Uninstall the material in plugins section.
Uninstall Material Theme UI plugin: Settings->Plugins
Delete colors from the config folder: C:\Users\User name\<.IdeaIC2018.2>\config\colors (don't remove the whole config folder because all the previous settings and tasks will be removed)
Delete material_theme file: C:\Users\User name\<.IdeaIC2018.2>\options\material_theme
If you are wondering how to do it in PHPStorm 2020.2 and above:
Settings (Alt + Ctrl + S) -> Plugins -> Uncheck the MaterialUI.
After unchecking, you would then be able to see an option to uninstall from the dropdown arrow found next to the install button.
2019 version File > Settings (or alt + f7 on windows), search for material theme ui
if you have the stupid accents persisting through uninstalling the plugin, deleting config files and so on the solution is under:
appearance and behavior > file colors > delete all of them
Another 2019 version (worked in my case):
open the settings editor (File->Settings)
search for Plugins page
inside the Plugins page, search for the Material UI plugin and uninstall it
search for Appearance & Behaviour->Appearance page
select the theme you prefer (IntelliJ or Darkula or High contrast). If your theme is already selected, chose another theme, apply the changes, than select back your preferred theme.
close IntelliJ (or PyCharm/WebStorm/etc)
open .IntelliJIdea<version>/config folder, usually it's in your home folder.
remove the following files:
material_theme.xml
colors/_#user_Darcula.icls or colors/_#user_Dafault.icls (beware: you may loose custom configurations you may have done)
Done.
This works for me in 2023.
Steps
Go to File --> Settings --> Plugins --> Go to "Installed" tab --> Search "Material Theme UI" --> Click on settings icon --> Click on "Uninstall" --> Click "Yes" in the dialog box --> Restart the IDE
Screenshot
Make sure to Restart the IDE

How does one delete a project in webstorm.

I have tried the the following https://www.jetbrains.com/webstorm/help/safe-delete.html?search=dele but the safe delete options does not get enabled on the ide.
please try the following:
in WebStorm, close the project
delete it from Recent projects list (in Welcome screen, focus the
project and hit Delete)
shut down WebStorm
delete the project folder completely from your disk
To remove project from Webstorm, go to menu and click on File -> Open Recent -> Manage Projects (at the bottom)
In popop which opens highlight the project you want to delete and click on X beside it

How to configure custom PYTHONPATH with VM and PyCharm?

I am using IntelliJ with the Python plugin and the Remote Interpreter feature to communicate with my Vagrant VM. It sets up the remote interpreter correctly to use my VM's interpreter. But, I use a custom PYTHONPATH in my VM, and I would like IntelliJ to recognize that path and include the modules in that path when developing.
How do I configure IntelliJ/PyCharm's remote interpreter to use a custom PYTHONPATH on the VM?
For PyCharm 5 (or 2016.1), you can:
select Preferences > Project Interpreter
to the right of interpreter selector there is a "..." button, click it
select "more..."
pop up a new "Project Interpreters" window
select the rightest button (named "show paths for the selected interpreter")
pop up a "Interpreter Paths" window
click the "+" buttom > select your desired PYTHONPATH directory (the folder which contains python modules) and click OK
Done! Enjoy it!
Instructions for editing your PYTHONPATH or fixing import resolution problems for code inspection are as follows:
Open Preferences (On a Mac the keyboard short cut is ⌘,).
Look for Project Structure in the sidebar on the left under Project: Your Project Name
Add or remove modules on the right sidebar
EDIT: I have updated this screen shot for PyCharm 4.5
To me the solution was to go to
Run > Edit Configuration > Defaults > Python
then manage the
"Add content roots to PYTHONPATH" and
"Add source root to PYTHONPATH"
checkboxes, as well as setting the "Working directory" field.
If you have set up your own Run/Debug Configurations then you might want to go to
Run > Edit Configuration > Python > [Whatever you called your config]
and edit it there.
My problem was that I wanted to have my whole repository included in my PyCharm 2016.2 project, but only a subfolder was the actual python source code root. I added it as "Source Root" by right clicking the folder then
Mark directory as > Source Root
Then unchecking "Add content roots to PYTHONPATH" and checking "Add source root to PYTHONPATH" in the Run/Debug config menu. I then checked the folder pathing by doing:
import sys
logger.info(sys.path)
This outputed:
[
'/usr/local/my_project_root/my_sources_root',
'/usr/local/my_project_root/my_sources_root',
'/usr/lib/python3.4', '/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages',
'/usr/lib/python3/dist-packages'
]
However, without the fix it said:
[
'/usr/local/my_project_root/my_sources_root',
'/usr/local/my_project_root', <-- NOT WANTED
'/usr/lib/python3.4',
'/usr/lib/python3.4/plat-x86_64-linux-gnu',
'/usr/lib/python3.4/lib-dynload',
'/usr/local/lib/python3.4/dist-packages',
'/usr/lib/python3/dist-packages'
]
Which meant I got the project root folder included. This messed up the pathing for me.
This was done with PyCharm Community 2019.1
Go to Project Settings
Go to Project Structure and right click on the directory you want to add and click "Sources"
This should add the directory to your pythonpath
An update to the correct answer phil provided, for more recent versions of Pycharm (e.g. 2019.2).
Go to File > Settings and find your project, then select Project Interpreter. Now click the button with a cog to the right of the selected project interpreter (used to be a ...).
From the drop-down menu select Show All... and in the dialog that opens click the icon with a folder and two sub-folders.
You are presented with a dialog with the current interpreter paths, click on + to add one more.
In my experience, using a PYTHONPATH variable at all is usually the wrong approach, because it does not play nicely with VENV on windows. PYTHON on loading will prepare the path by prepending PYTHONPATH to the path, which can result in your carefully prepared Venv preferentially fetching global site packages.
Instead of using PYTHON path, include a pythonpath.pth file in the relevant site-packages directory (although beware custom pythons occasionally look for them in different locations, e.g. enthought looks in the same directory as python.exe for its .pth files) with each virtual environment. This will act like a PYTHONPATH only it will be specific to the python installation, so you can have a separate one for each python installation/environment. Pycharm integrates strongly with VENV if you just go to yse the VENV's python as your python installation.
See e.g. this SO question for more details on .pth files....
Latest 12/2019 selections for PYTHONPATH for a given interpreter.
Well you can do this by going to the interpreter's dialogue box. Click on the interpreter that you are using, and underneath it, you should see two tabs, one called Packages, and the other called Path.
Click on Path, and add your VM path to it.
In pycharm 5 follow this,
https://www.jetbrains.com/pycharm/help/configuring-python-interpreter-for-a-project.html
1)Open the Settings dialog box, and click Project Interpreter page.
2)In the Projects pane, choose the desired project.
3)For the selected project, choose SDK from the list of available Python interpreters and virtual environments.
In Intellij v2017.2 you can go to:
run > edit configurations > click ... next to the field 'Environment variables' > click the green + sign
Name= PYTHONPATH
value= your_python_path
Pycharm 2020.3.3 CE ZorinOS(Linux) File>Settings > Project Structure > {select the folder} > Mark as Source(blue folder icon) > Apply
To verify:
import sys
print(sys.path)
Selected path should be listed here.

WebStorm : How to import multiple project in same window in WebStorm

Need help to figure out how to import multiple projects in same window in WebStorm, In IntelliJ we can do this using modules, But I don't see that feature in WebStorm.
From Webstorm 2019.2 - you can open multiple projects in the same Webstorm instance.
File --> Open --> Go to the project directory --> Open:
In the Open Project dialog , select "Attach".
WebStorm doesn't support opening multiple projects in the same frame, however you can add multiple content roots to the same project:
Webstorm supports opening two projects in one window now.
All you have to do is open first project then
File --> Open --> Select second project folder and click open --> Then click Attach from the next dialog box
This is working in Ubuntu
On Newer versions of WebStorm (eg WebStorm 2022.1.1)
From the top options.
File -> Attach project... -> Select project folder -> Click Open
This will "Add" the selected project folder into the workspace.