How to save a copy of changed files locally from Intellij IDEA? - intellij-idea

Basically, I have changed few files in Intellij IDEA and it is
connected to some version control.
I do not want to commit it to version control, but my objective is
to keep a copy of these files somewhere in my filesystem.
By doing this,
I can experiment with the unchanged files in the meantime.
When I want to restore the changes, I can import these changed files.
A brute force way of doing this is to iterate through list of changed files and
make a copy somewhere. Is there any other efficient way?

Since IntelliJ IDEA 2017 you can create patches from entire changelists, save to file and then apply from file.
Local Changes tab -> right click changelist -> Copy as Patch to Clipboard
Paste to .txt file and save.
VCS tab -> Apply patch -> select file

Related

Vba do not open wbook

There isn't enough memory to complete this action" in Excel
How to fix it without opening file
İ want to turn calculation manual but without open it is impossible
In order to change the automatic calculation to manual without opening the .xlsx file, you can do this. Before doing this, be sure to make a copy of the file and try these manipulations on the copy.
Unzip the .xlsx as a .zip archive, open the file ...\xl\workbook.xml in a text editor, find a tag similar to the following <calcPr calcId="191029"/> and add to it calcMode="manual" so you get <calcPr calcId="191029" calcMode="manual"/>. Then save this file, package the entire directory, and change the extension to .xlsx.

How to copy a file without extension and at the end of the copy put it?

I am using teracopy to move some files. I would like to make a form in visual * .exe where you simply have two windows: one with the file's origin on the right, and another with the file's destination.
I need to copy the file without its extension, verify that the transfer occurred without issue, and then restore the original extension. For example:
Copy file.mov to // smb: Storage / Movies /
Remove the .mov extension
Copy the file to the storage location
Validate file size
If the file size at the destination matches the source, restore the .mov extension
If the file size doesn't match, delete the destination file and notify the user of the error.
The files I plan to copy are very large, and will take a good amount of time. I'm removing the extension so that users on the server will not accidentally try to access a file that isn't completely transferred yet - the idea is they see an "extensionless" file and know not to try and open it, whereas any files with extensions are certain to have copied over correctly.
I've tried using CMD and powershell, but I've only managed to copy the file or retry copying if the copy fails. I don't yet know how to remove the extension and restore it.
> ROBOCOPY /Mir <Source> <Target>
You can try this:
copy %UserProfile%\YourFile.* "Path to copy to"

How to tell Intellij the file base when unshelving?

I shelved files using Intellij with the intention of separating changes made in Master into separate branches. On trying to "unshelve", Intellij is telling me it cannot find the file base for many of my files.
For example, the Intellij "Unshelve Changes" dialog is complaining about files as:
C:\Users\rcoe\intellij-workspace\proj\D:\cygwin64\home\rcoe\git\proj 14 files
When I remap the 14 files and tell Intellij to remove files from the shelf that have been successfully unshelved, it fails to unshelf any. I am not able to unshelve any of these files. A huge problem, as my shelf contains many more than just these 14 files, as I have a maven multi module project and this problem exists across all of them.
When I manually remap the files inside the Unshelve Changes dialog, Intellij does show the base as being changed. But closing the dialog doesn't change a thing. Any help on making this work would be appreciated.
Thanks.
EDIT:
I managed to remove 14 of 16 files that I needed. I found that by selecting one file at a time, I could unshelve each file. I did not have to re-do the manual mapping process. It seems the two files that refuse to get re-mapped were causing the others to not get unshelved. There is nothing out of the ordinary with the last two files. When I try to unshelve and then find a new base for the files, the file chooser dialog takes me right to the files.

Edit source code of Impress odp file

I want to edit the source code of an Impress file (.odp) but when I open it is just machine coded.
I want to do it because when I converted files from PowerPoint to an Impress File some parts got mixed up. Like for example footer and numbering can't be changed globally. So by editing the source code, I hope to be able to use find/replace in a Text Editor.
LibreOffice formats are zipped archives primarily containing XML files. So unzip the .odp and then edit content.xml.
When finished, zip it back up, making sure to zip it from the correct directory (the one that contains content.xml).
Documentation: https://help.libreoffice.org/Common/XML_File_Formats#XML_file_structure.
If you are using a Mac do the following:
Change the .odp extension to .zip by manually clicking the icon and renaming the file
Unzip the file using something other than the standard Archiver (I used Keka)
You will see the folder of contents including the content.xml which you can easily edit now
Crucial: Go into the directory with your separate files, select all the files then hit 'compress' from the options menu when you right click
Next, rename the .zip to .odp and the file will open successfully
I found that if you don't do option 4 above exactly then the file is slightly different and won't open due to a corruption message.

sql Developer pkg AND trg FILES

taking a SQL class and using sql developer. How do I create a file with extensions .pkg and .trg. I know they are for package and triggers. When I opened my connection and right clicked package I opened a package but it did not create an actual file that I would be able to submit?
Any ideas?
There are various options for saving your code to a file:
Right click on the object in the connections tree and choose Quick DDL -> Save to File. This will save the file with a .sql extension which you can later change as desired from the file system.
Open the object from the connections tree, then choose File -> Save As. This method defaults to saving files with a .pls extension, but you can override that when saving or change it later from the file system.
Drag the objects from the Connections tree to the shopping Cart (View->Cart) then Click the Export Cart button (DB icon with a green arrow) and choose the Save As Separate Files option. The files will be saved with .sql extensions, and for table objects it can optionally export the data as well.