Skip to content

Instantly share code, notes, and snippets.

@BMPixel
Created December 6, 2024 03:15
Show Gist options
  • Save BMPixel/b1da190e61c8425a0f0b8a49f00ce5fd to your computer and use it in GitHub Desktop.
Save BMPixel/b1da190e61c8425a0f0b8a49f00ce5fd to your computer and use it in GitHub Desktop.
My settings.json for cursor
{
"explorer.confirmDragAndDrop": false,
"explorer.confirmDelete": false,
"security.workspace.trust.untrustedFiles": "open",
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
"git.enableSmartCommit": true,
"editor.accessibilitySupport": "off",
"files.autoSave": "onFocusChange",
"editor.unicodeHighlight.allowedLocales": {
"zh-hans": true,
"zh-hant": true
},
"editor.fontSize": 17,
"editor.inlineSuggest.enabled": true,
"editor.cursorSurroundingLines": 7,
"editor.fontFamily": "SF Mono",
"terminal.integrated.fontSize": 16,
"debug.console.fontSize": 15,
"editor.fontLigatures": true,
"editor.tabCompletion": "on",
"editor.overviewRulerBorder": false,
"editor.hideCursorInOverviewRuler": true,
"editor.renderLineHighlightOnlyWhenFocus": true,
"workbench.editor.pinnedTabSizing": "compact",
"html.format.wrapLineLength": 180,
"editor.wordWrapColumn": 120,
"git.ignoreLegacyWarning": true,
"files.watcherExclude": {
"**/env/**": true,
"**/venv/**": true,
"**/wandb/**": true
},
"editor.smoothScrolling": true,
"workbench.list.smoothScrolling": true,
"window.closeWhenEmpty": true,
"git.confirmSync": false,
"debug.terminal.clearBeforeReusing": true,
"remote.downloadExtensionsLocally": true,
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1",
"CW_NEW_SESSION": "1"
},
"editor.stickyScroll.enabled": true,
"workbench.reduceMotion": "off",
"git.autofetch": true,
"window.title": "${activeEditorMedium}${separator}${rootName}${remoteName}",
"editor.scrollbar.verticalScrollbarSize": 6,
"terminal.integrated.macOptionIsMeta": true,
"search.actionsPosition": "auto",
"editor.autoClosingOvertype": "always",
"editor.formatOnPaste": true,
"terminal.integrated.shellIntegration.history": 10000,
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash",
"icon": "terminal-bash"
},
"zsh": {
"path": "zsh"
},
"fish": {
"path": "fish"
},
"tmux": {
"path": "tmux",
"args": [
"new",
"-A",
"-s",
"0"
],
"icon": "terminal-tmux"
},
"pwsh": {
"path": "pwsh",
"icon": "terminal-powershell"
},
"sh": {
"path": "/bin/sh"
}
},
"terminal.integrated.profiles.osx": {
"bash": {
"path": "bash",
"args": [
"-l"
],
"icon": "terminal-bash"
},
"fish": {
"path": "fish",
"args": [
"-l"
]
},
"tmux": {
"path": "tmux",
"args": [
"new",
"-A",
"-s",
"${workspaceFolderBasename}"
],
"icon": "terminal-tmux"
}
},
"terminal.integrated.rightClickBehavior": "default",
"terminal.integrated.macOptionClickForcesSelection": true,
"gitlens.showWelcomeOnInstall": false,
"gitlens.currentLine.enabled": false,
"gitlens.showWhatsNewAfterUpgrades": false,
"gitlens.defaultGravatarsStyle": "retro",
"gitlens.plusFeatures.enabled": false,
"gitlens.virtualRepositories.enabled": false,
"gitlens.currentLine.pullRequests.enabled": false,
"search.smartCase": true,
"editor.find.globalFindClipboard": true,
"search.quickOpen.includeSymbols": true,
"remoteHub.commitDirectlyWarning": "off",
"dev.containers.defaultExtensions": [
"mksafi.find-jump",
"GitHub.copilot",
"eamodio.gitlens",
"VisualStudioExptTeam.vscodeintellicode",
"dbankier.vscode-quick-select",
"albert.TabOut",
"nachocab.select-paragraph"
],
"editor.minimap.showSlider": "always",
"git.openRepositoryInParentFolders": "never",
"extensions.autoUpdate": true,
"telemetry.telemetryLevel": "off",
"jupyter.interactiveWindow.creationMode": "perFile",
"latex-workshop.synctex.afterBuild.enabled": true,
"latex-workshop.view.pdf.invertMode.enabled": "auto",
"editor.formatOnType": true,
"gitlens.advanced.messages": {
"suppressGitVersionWarning": true
},
"editor.formatOnSaveMode": "modificationsIfAvailable",
"extensions.autoCheckUpdates": false,
"remote.SSH.lockfilesInTmp": true,
"remote.SSH.remoteServerListenOnSocket": true,
"remote.SSH.remotePlatform": {
"ModelArts-notebook-c756": "linux",
"ModelArts-notebook-1012": "linux",
"remote_fish": "linux",
"10.160.22.46": "linux",
"azure.panwenbo.top": "linux",
"hpc": "linux",
"20.38.4.159": "linux",
"relay.panwenbo.icu": "linux",
"orb": "linux",
"pslab": "linux",
"152.136.41.254": "linux",
"pslab-g2": "linux",
"sense74": "linux",
"jiuxian": "linux",
"sensetime": "linux",
"sensetime-93": "linux",
"sensetime-96": "linux",
"sensetime-75": "linux",
"sensetime-76": "linux",
"sensetime-95": "linux",
"sensetime-85": "linux",
"sensetime-84": "linux",
"pi": "linux",
"raspberrypi": "linux",
"pi.wenbo.io": "linux",
"h800": "linux",
"sensetime-80": "linux",
"h800-08": "linux",
"h800-05": "linux",
"langboat": "linux",
"ps": "linux",
"h800-14": "linux",
"h800-15": "linux",
"langboat-16": "linux",
"h800-16": "linux",
"raspberrypi.local": "linux",
"pslab-ts": "linux",
"bandwagon": "linux",
"bopan5": "linux",
"k1939": "linux",
"100.114.181.3": "linux",
"cityu": "linux",
"100.91.84.125": "linux",
"jump-hk": "linux"
},
"workbench.editor.empty.hint": "hidden",
"extensions.experimental.affinity": {
"asvetliakov.vscode-neovim": 1
},
"python.analysis.autoImportCompletions": true,
"python.analysis.logLevel": "Warning",
"github.copilot.chat.welcomeMessage": "never",
"workbench.editor.tabActionLocation": "left",
"terminal.integrated.enableImages": true,
"terminal.integrated.smoothScrolling": true,
"editor.copyWithSyntaxHighlighting": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"terminal.integrated.commandsToSkipShell": [
"github.copilot.terminal.suggestCommand",
"workbench.action.terminal.runRecentCommand"
],
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"debug.confirmOnExit": "always",
"accessibility.verbosity.terminal": false,
"terminal.integrated.defaultProfile.linux": "fish",
"editor.wordWrap": "on",
"python.terminal.activateEnvironment": false,
"workbench.commandPalette.history": 400,
"accessibility.signals.terminalBell": {
"sound": "on"
},
"terminal.integrated.enableVisualBell": true,
"notebook.editorOptionsCustomizations": {
"editor.tabSize": 4,
"editor.indentSize": 4,
"editor.insertSpaces": true
},
"latex-workshop.latex.watch.delay": 25,
"latex-workshop.latex.watch.pdf.delay": 25,
"markdown.updateLinksOnFileMove.enabled": "always",
"editor.unicodeHighlight.invisibleCharacters": false,
"notebook.stickyScroll.enabled": true,
"terminal.integrated.stickyScroll.enabled": true,
"terminal.integrated.persistentSessionScrollback": 10000,
"python.terminal.launchArgs": [
"-m",
"IPython",
"--no-autoindent",
"-i"
],
"latex-workshop.latex.tools": [
{
"name": "latexmk",
"command": "latexmk",
"args": [
"-xelatex",
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
},
{
"name": "lualatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-lualatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "xelatexmk",
"command": "latexmk",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"-xelatex",
"-outdir=%OUTDIR%",
"%DOC%"
],
"env": {}
},
{
"name": "latexmk_rconly",
"command": "latexmk",
"args": [
"%DOC%"
],
"env": {}
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
],
"env": {}
},
{
"name": "rnw2tex",
"command": "Rscript",
"args": [
"-e",
"knitr::opts_knit$set(concordance = TRUE); knitr::knit('%DOCFILE_EXT%')"
],
"env": {}
},
{
"name": "jnw2tex",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"tex\")"
],
"env": {}
},
{
"name": "jnw2texminted",
"command": "julia",
"args": [
"-e",
"using Weave; weave(\"%DOC_EXT%\", doctype=\"texminted\")"
],
"env": {}
},
{
"name": "pnw2tex",
"command": "pweave",
"args": [
"-f",
"tex",
"%DOC_EXT%"
],
"env": {}
},
{
"name": "pnw2texminted",
"command": "pweave",
"args": [
"-f",
"texminted",
"%DOC_EXT%"
],
"env": {}
},
{
"name": "tectonic",
"command": "tectonic",
"args": [
"--synctex",
"--keep-logs",
"%DOC%.tex"
],
"env": {}
}
],
"terminal.integrated.cursorStyle": "line",
"workbench.editor.tabSizing": "fixed",
"workbench.iconTheme": "material-icon-theme",
"workbench.tips.enabled": false,
"window.zoomPerWindow": false,
"window.openFoldersInNewWindow": "off",
"terminal.integrated.tabs.title": "${sequence}",
"settingsSync.keybindingsPerPlatform": false,
"terminal.integrated.cursorWidth": 2,
"workbench.commandPalette.experimental.suggestCommands": true,
"workbench.panel.opensMaximized": "never",
"editor.cursorSmoothCaretAnimation": "explicit",
"workbench.startupEditor": "terminal",
"terminal.integrated.persistentSessionReviveProcess": "onExitAndWindowClose",
"terminal.integrated.gpuAcceleration": "on",
"python.analysis.autoFormatStrings": true,
"terminal.integrated.suggest.enabled": true,
"editor.minimap.renderCharacters": false,
"editor.minimap.autohide": true,
"interactiveWindow.executeWithShiftEnter": true,
"terminal.integrated.confirmOnKill": "never",
"notebook.output.scrolling": true,
"notebook.output.wordWrap": true,
"terminal.integrated.localEchoEnabled": "off",
"window.newWindowProfile": "Default",
"window.doubleClickIconToClose": true,
"vscode-neovim.neovimExecutablePaths.darwin": "/opt/homebrew/bin/nvim",
"terminal.integrated.defaultProfile.osx": "fish",
"window.commandCenter": false,
"workbench.layoutControl.enabled": false,
"cursor.chat.smoothStreaming": true,
"cursor.cpp.disabledLanguages": [
"untitled"
],
"terminal.integrated.enableMultiLinePasteWarning": false,
// Remove titlebar
"apc.header": {
"height": 37
},
"apc.sidebar.titlebar": {
"height": 37
},
// Transparency
"apc.electron": {
"titleBarStyle": "hiddenInset",
"backgroundColor": "#000000ff",
"vibrancy": "fullscreen-ui",
},
"apc.stylesheet": {
// Sidebar vibrancy
".sidebar": "opacity: 0.8 !important;",
".activitybar": "opacity: 0.8 !important;",
".vs-dark .auxiliarybar": "background-color: #181818DD !important;",
".auxiliarybar": "background-color: #f8f8f8DD !important;",
".auxiliarybar .composite": "background-color: transparent !important;",
// Inset titlebar
".inline-titlebar-placeholder": "padding-right: 8px;",
".mac.nosidebar:not(.sidebar-right):not(.fullscreen) .inline-tabs-placeholder": "padding-left: calc(var(--traffic-X) + 8px);",
".statusbar #status\\.host": "display: block !important; width: calc(var(--activity-bar-action-size)px); height: 18px; margin: 6px; border-radius: 30px;",
// More round borders!
".premium-bubble > div": "border-radius: 6px !important;",
".full-input-box": "border-radius: 8px !important;",
".monaco-dialog-modal-block": "border-radius:6px;",
".monaco-text-button": "border-radius:6px;",
".monaco-inputbox": "border-radius:6px;",
".suggest-input-container": "border-radius: 6px;",
".editor-widget": "border-radius:8px !important;",
".editor-widget>.monaco-sash": "display: none;",
".monaco-hover": "border-radius: 6px !important;",
// Thinner and rounder slider
".scrollbar.horizontal": "height:6px !important;",
".vertical>.slider": "width:6px !important;",
".slider": "border-radius:6px;",
// Command palette
".quick-input-widget": {
"box-shadow": "0 20px 100px rgba(0, 0, 0, 0.4) !important;",
"border-radius": "13px !important;",
"padding": "10px 15px 0px 15px;",
"margin-top": "10%;",
"border": "1px solid rgba(128, 128, 128, 0.5) !important;"
},
".quick-input-header": "margin-bottom: 10px;",
// More shadows!
".suggest-widget": "box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);",
".suggest-details": "box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);",
},
"apc.statusBar": {
"position": "editor",
"height": 30,
"fontSize": 10
},
"apc.activityBar": {
"size": 30,
"position": "bottom"
},
"window.titleBarStyle": "native",
"workbench.activityBar.orientation": "vertical",
"window.autoDetectColorScheme": true,
"workbench.preferredLightColorTheme": "Default Light Modern",
"cursor.aipreview.enabled": true,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment