Where does LTspice keep its settings? - Page 1
Forum section: electronics / general

author: owiecc
author_rank: Frequent Contributor
timestamp: February 16, 2015, 08:49:56 am
content: I have created a custom color scheme for LTspice based on new MATLAB colors. I would like to have these setting on all my computers. Is there a file I can sync?I am using OS X version of LTspice but if someone knows how this is saved in Windows version please also comment. OS X may use similar file structure.

author: Unknown
author_rank: Unknown
timestamp: February 17, 2015, 02:09:31 pm
content: On Windows it's in %APPDATA%\LTspiceIV.ini (e.g. C:\Users\\AppData\LTspiceIV.ini or similar, depending on the Windows version & setup).On OSX ... hmmm, that's a bloody good question! I thought I found it under ~/.wine/drive_c/users//Application Data/LTspiceIV.ini, but that's for the old WINE-packaged versions. For the newer native versions from the past year or so, I couldn't find LTspiceIV.ini or anything obviously LTspice-related in the usual places (e.g. the app bundle, system & user application support folders, etc, etc).Maybe ask ltspice@linear.com? And post the answer here

author: owiecc
author_rank: Frequent Contributor
timestamp: February 17, 2015, 07:04:42 pm
content: Tried the email. It does not existI tweeted them, maybe someone will respond.

author: atferrari
author_rank: Frequent Contributor
timestamp: February 17, 2015, 11:16:22 pm
content: Ask in the LTSpice group at Yahoo.

author: owiecc
author_rank: Frequent Contributor
timestamp: April 01, 2015, 07:23:29 pm
content: Thanks datumplane. I tried changing the keys using defaults and plutil but LTspice seems to ignore the changes.

author: suenteus
author_rank: Newbie
timestamp: October 20, 2016, 11:43:17 am
content: Hey all. Is this thread totally dead? Did anyone ever figure out where LTSpice on Mac keeps its settings?I've got a project whose directory I moved. There's a model file inside the directory but now LTSpice is looking in the old directory for that file. I've opened the .asc file and can't find any mention of the model directory in there, so it must be (I imagine) in the LTSpice settings somewhere.Any help would be super appreciated!

author: matseng
author_rank: Frequent Contributor
timestamp: October 20, 2016, 03:16:11 pm
content: On OSX LTspice keeps its general settings in a binary formatted plist file.You can use the "plutil" utility to either convert the file or just view it as a "human-readable fashion" as the help file puts it. ;-)Code:plutil -p /Users/matseng/Library/Preferences/LTC.LTspice.plist

author: cjheath
author_rank: Contributor
timestamp: April 03, 2019, 01:24:21 am
content: I was looking for a way to change the hotkeys on OSX.LTSpice IV on OSX keeps these in the dialog definition files (which are also PLIST files), e.g./Applications/LTspice.app/Contents/Resources/ASCdocument.nib. Note that each dialog has its own menus with separate definitions of the same hotkeys.If you dump these usingplutil -p, you can see sections like this:Quote61 is the key into the PLIST dictionary for the Drag item in the context menu of the ASC (schematic) dialog.The value in this entry includes NSTitle (value 62) and NsKeyEquiv (value 63) - and NSKeyEquiv indicates a hot key.Key 61 does not include NSKeyEquivModMask, which would set a key modifier mask (e.g. 1048576 means "Command", 131072 means Shift-Command).62 is the key for the label of the Drag button.63 (the value of NSKeyEquiv) is the key for the Unicode code point that corresponds to the hot key.Key 63 contains the Unicode code point F70B (expressed in UTF-8 as "ef 9c 8b"), which is in a "private use" space in Unicode. This must correspond to the F8 key. I have been looking in the OSX development resources to find out how the conversion from the Event.h keycode 0x64 gets converted to F70B.But for what it's worth, this is how and where to change the OSX hot keys for LTSpice. If someone gets further with it, please post here!

author: cjheath
author_rank: Contributor
timestamp: April 03, 2019, 07:41:51 am
content: An update: I used a binary file editor to change the displayed shortcut for "Wires" from F3 to "x", by modifying the value of the appropriate key in the NIB (plist) file, and it did change the displayed text - but LTSpice still responded to F3 not to "x".I don't think the recognised values are set in the NIB file, but could be hard-wired in the code

author: ono
author_rank: Contributor
timestamp: December 16, 2021, 09:30:09 pm
content: I just started playing with LTspice on Mac and the UI is very spartan and F2, F3 keybindings are really awkward for Mac users. So I also started looking into modifying LTspice shortcuts (as of course there is no toolbar and there is Key customization as on Windows) and then I found your post.And unfortunately I confirm looking at LTspice disassembly that key handling (including function keys) is hardcoded in [ASCview keyDown:] methodAnd it is not even possible to override function key mapping as it is driven by some index minus F2 key 16-bit unicode value

author: owiecc
author_rank: Frequent Contributor
timestamp: December 18, 2021, 02:13:13 pm
content: Quote from: ono on December 16, 2021, 09:30:09 pmThat is a pretty hardcore way to start playingMaybe write an email to LTSpice support. They are quite responsive and maybe that is an easy fix for them.For now take a look at Keyboard Maestro. Pretty easy to customise all the keystrokes.

author: RoGeorge
author_rank: Super Contributor
timestamp: December 18, 2021, 02:50:58 pm
content: Most of the settings and keybindings can be configured from the LTspice GUI menu:Tools -> Control Panel -> Drafting Options -> Hot Keys

author: ono
author_rank: Contributor
timestamp: December 18, 2021, 05:12:01 pm
content: Quote from: RoGeorge on December 18, 2021, 02:50:58 pmThe catch is that Hot Keys customization exists only on Windows

author: RoGeorge
author_rank: Super Contributor
timestamp: December 18, 2021, 10:57:53 pm
content: I'm running LTspice on Linux (Kubuntu 20.04 LTS), using the Windows version of LTspice installed on Linux with the help of WINE, and the keys customization is working just fine.Wine project is available for either Linux and BSD,https://www.winehq.org/,so I guess it should also work on Mac. I don't have a Mac, but you made me curious.What happens if you install WINE on your Mac, then download LTspice for Windows, and open (run) the downloaded LTspice installer (.exe) using wine?(from a terminal, type "wine LTspice64.exe", as a normal user, and that should install LTspice under wine)

author: johan162
author_rank: Newbie
timestamp: March 22, 2022, 08:32:05 pm
content: For those of you using theOSXversion of LTSpice I have created a new theme manager available here:https://github.com/johan162/ltspice-osx-themesIt makes it possible to both load a pre-defined theme for use in LTSpice but also save an existing configuration of LTSpice as a new theme. It comes with 5 different pre-defined themes as default . See preview of the themes here:https://github.com/johan162/ltspice-osx-themes#theme-reference-screenshots)It is quite easy to use as the following two example show:Example use to set the pre-defined color theme "softdark":Code:$> themeltspice.sh softdarkExample use to store the current color setting as the new theme "mytheme"Code:$> themeltspice.sh -d mytheme

author: owiecc
author_rank: Frequent Contributor
timestamp: March 24, 2022, 03:18:40 pm
content: Great job. This will help me with syncing the theme across computers.

author: elffuts
author_rank: Newbie
timestamp: May 02, 2022, 06:31:41 am
content: The settings are in ...\User\AppData\Roaming\LTspiceXVII.iniAny chance you might share that custom color scheme?

author: RoGeorge
author_rank: Super Contributor
timestamp: May 02, 2022, 08:33:48 am
content: Quote from: elffuts on May 02, 2022, 06:31:41 amThanks!In Linux (Kubuntu 20.04 + WineHQ) that translates to/home/$USER/.wine/drive_c/users/$USER/Application\ Data/LTspiceXVII.iniMine looks like this (without the [Recent File List] section, some keyboard shortcuts changed, too):Code:Solver=1ShowCheckSum=falseWorkingDirectory=C:\users\aaaa\My Documents\LTspiceXVII\OpAmpSymbolSearchPath=LibrarySearchPath=SymbolSearchPathDisabled=falseLibrarySearchPathDisabled=falseSpicePriority=1PlotPriority=1LastFileTypeOpened=0Tabstopwidth=4grid=onGenerateExpandedListing=falseDefaultTrtol=1DefaultTrapIntegration=trueDefaultDoAntiTrapRinging=trueTSKbypass=falseAccept_3k4_Notation=trueNoJFETtempAdjIsr=falseSaveDeviceCurrents=trueSaveSubcircuitNodeVoltages=falseSaveSubcircuitDeviceCurrents=falsesaveOneCurrentPerDevice=falseShowSchematicGrid=falseOrthogonalDrag=falseAutoPan=falseDirectCompPinShorts=falseMinInductorDamping=trueUseClocktoReseedMC=falseEnableBetaOptimizations=falseBoldSchFont=falseShowTitleBox=trueReverseMouseWheelScroll=falseDefaultDeviceModels=trueDefaultDeviceLibraries=trueEnableWindowTabs=trueSchFontSize=34SchematicFont=5PenWidth=2DataPenWidth=2CursorThickness=1WindowSize=1 1919 1054 2103ToolBarIconSize=1AutoSaveOnSim=0MDIbackgroundImage=1AutoDeleteRawFiles=0DraftCursorType=0FastAccessRAM=0.4WaveformViewerFont=0WaveformViewerFontSize=10WaveformViewerBoldFont=trueUseXORcursor=falseRawCursorType=0MonochromePrinting=trueNoGreekMus=falseRadianMeasure=falseDefaultTileType=trueUseRawTempDir=falseRawTempDir=LastWebUpdateTime=1649498735Grid=6579300InActiveAxis=9868950WaveColor0=0WaveColor1=11513775WaveColor2=65280WaveColor3=65535WaveColor4=255WaveColor5=11513600WaveColor6=16711935WaveColor7=8421504WaveColor8=32768WaveColor9=11468800WaveColor10=32943WaveColor11=8388736WaveColor12=128WaveColor13=44975SchematicColor0=65535SchematicColor1=65535SchematicColor2=65280SchematicColor3=65535SchematicColor4=12648447SchematicColor5=16777215SchematicColor6=16777215SchematicColor7=16777215SchematicColor8=65535SchematicColor9=65535SchematicColor10=16777010SchematicColor11=16777215SchematicColor12=0SchematicColor13=3342335NetlistNormalTextColor=0NetlistCommentTextColor=32768NetlistDotcmdTextColor=16711680NetlistBackgroundColor=16777215ContinuationLineColor=255Place_Component=PDraw_Wire_Mode=WPlace_Netname=NDelete_Mode=Ctrl+DDuplicate_Mode=Ctrl+CMove_Mode=MDrag_Mode=DUndo=Ctrl+ZRedo=Ctrl+Shift+ZPlace_Comment_Text=TPlace_SPICE_Directive=SUnconn_Pin_Marks=UText_Anchor_Marks=APlace_Ground=GPlace_Resistor=RPlace_Capacitor=CPlace_Inductor=LPlace_Diode=Shift+DDraw_Lines=(none)Draw_Rectangles=(none)Draw_Circles=(none)Draw_Arcs=(none)Reset_T_0=0 )Schematic_Grid=Ctrl+GRotate=Ctrl+RMirror=Ctrl+MZoom_Area=ZZoom_Back=Back SpaceHalt_Simulation=Ctrl+HRun_Simulation=F5Place_BUS_Tap=(none)Zoom_to_Fit=SpaceView_SPICE_Error_Log=Ctrl+LPlace_Voltage_Source=VObject_Anchors=OPlace_Pin=PDelete_Mode=F5Duplicate_Mode=F6Move_Mode=F7Drag_Mode=F8Undo=Ctrl+ZRedo=Ctrl+Shift+ZPlace_Comment_Text=TDraw_Lines=LDraw_Rectangles=RDraw_Arcs=ADraw_Circles=CRotate=Ctrl+RMirror=Ctrl+EAttribute_Editor=Ctrl+AAttribute_Window=Ctrl+WZoom_Back=Back SpaceZoom_In=ZZoom_to_Fit=SpaceShow_Pin_Table=(none)Zoom_Extents=SpaceZoom_Area=ZZoom_Back=Back SpaceVertically_Autorange=YToggle_Grid=Ctrl+GDelete_Mode=Ctrl+DAdd_Trace=InsertAdd_Pane=Ctrl+NUndo=Ctrl+ZRedo=Ctrl+Shift+ZRun_Simulation=(none)Halt_Simulation=Ctrl+HOpen_Plot_Settings_File=Ctrl+OReload_Plot_Settings_File=Ctrl+RLabel_cursor_position=LPlace_text_on_the_plot=TDraw_an_arrow_on_the_plot=ADraw_a_line_on_the_plot=F3Draw_a_box_on_the_plot=(none)Draw_a_circle_on_the_plot=(none)Annotation_Line_Style/Color=(none)Copy_Plot_Annotations=Ctrl+CMove_Plot_Annotations=MDrag_Plot_Annotations=DSelect_Steps=SView_SPICE_Error_Log=Ctrl+LRedraw_Window=F5Goto_Line_Number=Ctrl+GRun_Simulation=Ctrl+RPause_Simulation=(none)Halt_Simulation=Ctrl+HUndo=F9Redo=Shift+F9View_SPICE_Error_Log=Ctrl+L

author: owiecc
author_rank: Frequent Contributor
timestamp: November 10, 2022, 01:02:50 pm
content: MATLAB based color scheme exported with themeltspice:Code:GridColor=9868950InActiveAxisColor=9868950WaveColor0=16777215WaveColor1=11513775WaveColor2=11826975WaveColor3=884479WaveColor4=2859051WaveColor5=2631381WaveColor6=12412564WaveColor7=4871819WaveColor8=12744675WaveColor9=8289918WaveColor10=2211260WaveColor11=13614615WaveColor12=128WaveColor13=44975SchematicColor0=0SchematicColor1=2631720SchematicColor2=0SchematicColor3=0SchematicColor4=12648447SchematicColor5=0SchematicColor6=0SchematicColor7=0SchematicColor8=9868950SchematicColor9=0SchematicColor10=11210240SchematicColor11=16777215SchematicColor12=16777215NetlistEditorColor0=0NetlistEditorColor1=32512NetlistEditorColor2=16711680NetlistEditorColor3=155NetlistEditorColor4=16777215

author: 2N2222A
author_rank: Regular Contributor
timestamp: December 27, 2022, 04:51:41 am
content: With anything like this, all you have to do is save the settings and then search for all files that have been modified in the last hour on the computer. Now you know everything that has changed, unless the settings are in the Windows registry. A different tool is needed for that.