microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.16k stars 28.54k forks source link

Alt + Click to open (or follow) the link #140185

Closed lamyergeier closed 1 year ago

lamyergeier commented 2 years ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

  1. Go to terminal and type echo "https://www.google.com"
  2. Press Alt along with left key of the mouse. The url doesn't open. Instead File Menu in the Menu bar becomes active.

I could not find any settings to change this behavior. May be this is a bug? Same behavior happens, when markdown reference links in a document is clicked, the File menu becomes active instead of following the link.

ArturoDent commented 2 years ago

Does Ctrl+click work better for you?

lamyergeier commented 2 years ago

@ArturoDent Ctrl+click does not work. Is it suppose to open Url?

@meganrogge I was using Ubuntu 20.04 before and in that I could do Alt + mouse left click to go url. Now I moved to Linux Mint, and the behavior is changed.

It can't be As Designed as it used to work till yesterday. In the image, one can see that when the cursor moves to a url it shows 'Open file in editor (alt + click)', if it is as designed then what is this pop up?

image

meganrogge commented 2 years ago

thank you for clarifying

meganrogge commented 2 years ago

can you provide me with your settings.json please?

lamyergeier commented 2 years ago

Please look at Settings.json

Tyriar commented 2 years ago

Doesn't repro on Ubuntu as you say. So I guess it's something with Mint.

These are the important settings:

"editor.multiCursorModifier": "ctrlCmd",
"window.titleBarStyle": "custom"

FYI @sbatten in case you're aware of alt misbehaving on Linux Mint.

sbatten commented 2 years ago

not aware of anything, but @anishmittal2020 does the issue repro with window.titleBarStyle => native? if so, this is probably beyond my realm of knowledge

lamyergeier commented 2 years ago

@sbatten I did window.titleBarStyle = native, as you said. I am observing the same behavior. You can see in the following image after I had clicked the link on the terminal (path to a directory), File in the menu bar gets highlighted (it is surrounded by red)

image

sbatten commented 2 years ago

cc @deepak1556 as he may have seen this as well

Abrifq commented 2 years ago

Quick summary question: are you using XFCE by any chance? I had the same issue in XFCE.

Long testing method:

Can you try Menu>Selection>Switch to Alt+Click for Multi-Cursor and try Ctrl+Clicking?

(Using Alt+Click for multi cursor will make Follow Link shortcut Ctrl+Click)

If that works, I also need you to try this to follow link:

  1. Make sure multi-cursor shortcut is Ctrl+Click (a.k.a. it says "Switch to Alt+Click for Multi-Cursor" in the Selection menu)
  2. Click on the link, do not let go or move your cursor.
  3. Press and hold Alt.
  4. Release click.

If this follows the link, then I'm sorry to tell it's a Windows Manager issue. If this happens, you probably can move your windows via Alt+Click and dragging.

Switching to another wm or disabling alt+click to move windows might fix your issue. Alternatively, you can change to Alt+Click for Multi-Cursor if you don't like to use it by clicking anyway.

lamyergeier commented 2 years ago

@Abrifq I am using Linux Mint 20.3 Cinnamon.

Abrifq commented 2 years ago

Ok, have you tested the "Long testing method" part?

lamyergeier commented 2 years ago

@sbatten Any updates on this? Still facing it in version 1.66.1. Also, the links in editor of markdown files doesn't work

Abrifq commented 2 years ago

Could you test it with this, again? @anishmittal2020

Long testing method:

Can you try Menu>Selection>Switch to Alt+Click for Multi-Cursor and try Ctrl+Clicking?

(Using Alt+Click for multi cursor will make Follow Link shortcut Ctrl+Click)

If that works, I also need you to try this to follow link:

  1. Make sure multi-cursor shortcut is Ctrl+Click (a.k.a. it says "Switch to Alt+Click for Multi-Cursor" in the Selection menu)
  2. Click on the link, do not let go or move your cursor.
  3. Press and hold Alt.
  4. Release click.

If this follows the link, then I'm sorry to tell it's a Windows Manager issue. If this happens, you probably can move your windows via Alt+Click and dragging.

Switching to another wm or disabling alt+click to move windows might fix your issue. Alternatively, you can change to Alt+Click for Multi-Cursor if you don't like to use it by clicking anyway.

lamyergeier commented 2 years ago

Both of the options are not working. Also, the links in editor of markdown files doesn't work too. But web url (starting with https) work in terminal as well as in editor for markdown files. The relative local path to PWD in Terminal doesn't work, while absolute path works (@Tyriar)!

image In the above image red links don't work while green ones work.

lamyergeier commented 2 years ago

@Tyriar @Abrifq @sbatten The issue is not present in version 1.63.1. All red and green links in the image in the previous comment work successfully. Something happened in the release 1.63.2 and is still present!

Abrifq commented 2 years ago

@anishmittal2020 can you supply us the markdown file or a sample of it?

The relative local path to PWD in Terminal doesn't work, while absolute path works! That's normal, as the relative path you need should be relative to the workspace folder or the file you are working on. Please show the workspace configuration (folders and related files) too.

If I'm not wrong, you are trying to use footnote links but you didn't set them properly. If it's another extended syntax thing, make sure the extension for it is installed and is currently running. (Press Ctrl+P and then use Developer: Show Running Extensions to make sure it doesn't throw any error).

Footnote links need their destination to be set before they work, can you confirm you a name for the shortcut and supplied a link in footnotes too? An example to valid footnote link should be:

Click [here][google]!

[google]: https://google.com

Click here!

I'll also make a sample workspace, so you can try if that works or not.

Abrifq commented 2 years ago

https://github.com/microsoft/vscode/issues/140185#issuecomment-1097979099

I made an example workspace: https://github.com/Abrifq/test-vscode-repo

Please download it as ZIP, open the workspace as a folder and test it.

lamyergeier commented 2 years ago

Facing same issue in MacOS Monterey.

Abrifq commented 2 years ago

@lamyergeier asking this just to make sure but it's about cmd clicking on links not working, right?

Also, can you send your settings.json file as well?

lamyergeier commented 2 years ago

@Abrifq What do you mean by cmd clicking?

{
    // MacOS Specific # Refer: [Update Bash version for VSCode's integrated terminal  MacOS - Stack Overflow](https://stackoverflow.com/questions/70184712/update-bash-version-for-vscodes-integrated-terminal-macos)
    "terminal.integrated.profiles.osx": {
        "new bash": { // profile name
            "path": "/usr/local/bin/bash",
            "args": []
        }
    },
    "terminal.integrated.defaultProfile.osx": "new bash",
    // Update, Telemetry and Security
    "update.mode": "none", //To block autoupdates to VS Code!
    "telemetry.telemetryLevel": "off",
    "security.workspace.trust.untrustedFiles": "open",
    "security.workspace.trust.enabled": false,
    // Extensions
    "extensions.ignoreRecommendations": true,
    "extensions.autoUpdate": false,
    "extensions.closeExtensionDetailsOnViewChange": true,
    // Window
    "breadcrumbs.enabled": true,
    "zenMode.hideActivityBar": true,
    "window.zoomLevel": 2,
    "window.newWindowDimensions": "maximized",
    "window.title": "${rootName}${separator}${dirty}${activeEditorShort}${separator}",
    "window.enableMenuBarMnemonics": false,
    // Editor
    "editor.suggestSelection": "first",
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "editor.wordWrap": "off",
    "editor.rulers": [
        80,
        100
    ],
    "editor.unfoldOnClickAfterEndOfLine": true,
    "editor.formatOnType": true,
    "editor.tabSize": 4,
    "editor.insertSpaces": false,
    "editor.detectIndentation": true,
    "editor.renderWhitespace": "all",
    "editor.trimAutoWhitespace": false,
    "editor.tabCompletion": "on",
    "editor.fontSize": 15,
    "editor.lineHeight": 0,
    "editor.fontLigatures": false,
    "editor.minimap.enabled": false,
    "editor.mouseWheelZoom": true,
    "editor.renderControlCharacters": true,
    "editor.snippetSuggestions": "top",
    "editor.showFoldingControls": "always",
    "editor.folding": true,
    "editor.quickSuggestions": {
        "other": true,
        "comments": true,
        "strings": true
    },
    "workbench.editor.decorations.colors": false,
    "workbench.editor.decorations.badges": false,
    "workbench.editor.untitled.hint": "hidden",
    "workbench.colorTheme": "Solarized Dark",
    "workbench.preferredDarkColorTheme": "Solarized Dark Modified",
    "workbench.preferredLightColorTheme": "Solarized Light Modified",
    "workbench.activityBar.visible": true,
    "workbench.sideBar.location": "right",
    "workbench.editor.showTabs": true,
    "workbench.editor.enablePreview": false,
    "workbench.startupEditor": "none",
    "workbench.list.horizontalScrolling": true,
    "workbench.editor.highlightModifiedTabs": true,
    "workbench.editor.enablePreviewFromQuickOpen": false,
    "workbench.tips.enabled": false,
    "workbench.commandPalette.history": 200,
    "workbench.panel.defaultLocation": "bottom",
    "workbench.statusBar.visible": true,
    "workbench.iconTheme": "vscode-icons",
    "workbench.colorCustomizations": {
        //"terminal.background": "#567", // should be defined by the colour scheme
        //"terminal.foreground": "#fff", // should be defined by the colour scheme
        "terminalCursor.foreground": "#dc322f",
        "[Solarized Dark Modified]": {
            "activityBarBadge.foreground": "#839496",
            "activityBarBadge.background": "#002b36",
            "activityBar.activeFocusBorder": "#839496",
            "activityBar.dropBorder": "#839496",
            //"activityBar.activeBackground": "#002b36",
            "activityBar.activeBorder": "#839496",
            "activityBar.foreground": "#839496",
            //"activityBar.border": "#002b36"
            //"sideBar.foreground": "#ff0000",
            //"sideBar.background": "#347890"
            "editorGroup.dropBackground": "#002b36"
        },
        "[Solarized Light Modified]": {
            "activityBarBadge.foreground": "#657b83",
            "activityBarBadge.background": "#fdf6e3",
            "activityBar.activeBorder": "#657b83",
            "activityBar.foreground": "#657b83"
            //"sideBar.foreground": "#ff0000",
            //"sideBar.background": "#347890"
        }
    },
    // Icons
    "vsicons.dontShowNewVersionMessage": true,
    // Night Switch Lite
    "nightswitch.autoSwitch": false,
    "nightswitch.disableAutoSwitchNotifications": true,
    "nightswitch.themeDay": "Solarized Light Modified",
    "nightswitch.themeNight": "Solarized Dark Modified",
    "nightswitch.location": "(48.15,11.58)",
    "nightswitch.sunset": "01:00",
    "nightswitch.sunrise": "5:00",
    // Terminal
    "terminal.integrated.scrollback": 50000,
    "terminal.integrated.fontSize": 16,
    "terminal.integrated.fontWeightBold": "500",
    "terminal.integrated.rightClickBehavior": "copyPaste",
    "terminal.integrated.tabs.enabled": true,
    //"terminal.integrated.letterSpacing": 50,
    "terminal.integrated.cursorBlinking": true,
    "terminal.integrated.copyOnSelection": true,
    // Explorer
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "explorer.openEditors.visible": 1,
    // File
    "files.insertFinalNewline": true,
    "files.trimFinalNewlines": true,
    "files.trimTrailingWhitespace": false,
    "files.autoSave": "afterDelay",
    "files.autoSaveDelay": 100,
    "files.associations": {
        "*.json": "jsonc",
        "*.rmd": "markdown",
        "*.awk": "shellscript",
        "*.mkd": "markdown",
        "*.theme": "json",
        ".lintstagedrc": "json",
        ".huskyrc": "json",
        "*.jupyterlab-settings": "jsonc",
        ".project": "xml",
        "*/Users/lamyergeier/opt/bin/*": "shellscript",
        "*.ico": "c",
        "config": "txt",
        "*.tsv": "tsv"
    }, // Refer: [Visual Studio Code language identifiers](https://code.visualstudio.com/docs/languages/identifiers)
    "files.exclude": {
        "**/.Archive/**": true,
        "**/.Backup/**": true,
        "**/.Commit/**": true,
        "**/.DS_Store": true,
        "**/.git": true,
        "**/.hg": true,
        "**/.Rendered/**": true,
        "**/.svn": true,
        "**/CVS": true,
        "**/node_modules/**": true
    },
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/**": true,
        "**/.Archive": true,
        "**/.Backup": true,
        "**/.Commit": true,
        "**/.Rendered/**": true,
        "**/.trash": true,
        "**/Tag": true,
        "**/*.gen.html": true,
        "**/*.gen.pdf": true,
        "**/Archive": true,
        "**/Image/**": true
    },
    // Search
    "search.smartCase": true,
    "search.useGlobalIgnoreFiles": true,
    "search.showLineNumbers": false,
    "search.exclude": {
        "**/.Archive": true,
        "**/.Backup": true,
        "**/.Commit": true,
        "**/.Rendered": true,
        "**/.trash": true,
        "**/Archive": true,
        "**/Tag": true
    },
    // git
    "git.autofetch": false,
    "git.autofetchPeriod": 600,
    "git.confirmSync": false, //https://github.com/Microsoft/vscode/issues/24594,
    "git.enableSmartCommit": true,
    "git.detectSubmodulesLimit": 100,
    "gitlens.defaultDateFormat": "YYYY-MM-DD HH:mm",
    "gitlens.defaultTimeFormat": "HH:mm",
    "gitlens.defaultDateShortFormat": "YYYY-MM-DD",
    "gitlens.advanced.messages": {
        "suppressCommitNotFoundWarning": true,
        "suppressFileNotUnderSourceControlWarning": true,
        "suppressLineUncommittedWarning": true
    },
    "commitizen.autoSync": true,
    // Bash
    "shellformat.path": "/usr/local/bin/shfmt",
    "shellformat.flag": "-ci -sr -bn",
    "shellcheck.executablePath": "/usr/local/bin/shellcheck",
    "shellcheck.customArgs": [
        "--external-sources"
    ],
    "bashIde.highlightParsingErrors": false,
    "[shellscript]": {},
    // Java
    "java.configuration.checkProjectSettingsExclusions": false,
    //"java.home": "/usr/local/Cellar/openjdk/1.8.0-212/jre",
    "java.format.settings.url": "https://raw.githubusercontent.com/google/styleguide/gh-pages/eclipse-java-google-style.xml",
    "java.errors.incompleteClasspath.severity": "ignore",
    "java.implementationsCodeLens.enabled": true,
    "java.referencesCodeLens.enabled": true,
    "[java]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": false,
        "editor.tabSize": 4,
        "editor.detectIndentation": true,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true
    },
    // XML
    "[xml]": {
        //"editor.defaultFormatter": "redhat.vscode-xml"
    },
    // json
    "[json]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "[jsonc]": {
        "editor.defaultFormatter": "vscode.json-language-features"
    },
    // Javascript
    "[javascript]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": false,
        "editor.tabSize": 4,
        "editor.detectIndentation": true,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "javascript.validate.enable": false, // For StandardJs Linting
    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
    "javascript.referencesCodeLens.enabled": true,
    "standard.autoFixOnSave": true,
    "standard.validate": [
        "javascript",
        "javascriptreact",
        "html"
    ],
    "standard.options": {
        "plugins": [
            "html"
        ]
    },
    // Typescript
    "[typescript]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": true,
        "editor.tabSize": 2,
        "editor.detectIndentation": true,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true
    },
    "typescript.referencesCodeLens.enabled": true,
    // C Editor Settings
    "[c]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": false,
        "editor.tabSize": 2,
        "editor.detectIndentation": false,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true
    },
    // C++
    "[cpp]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": false,
        "editor.tabSize": 2,
        "editor.detectIndentation": false,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true
    },
    "C_Cpp.clang_format_fallbackStyle": "LLVM",
    "C_Cpp.clang_format_path": "/Users/lamyergeier/opt/.nvm/versions/node/v16.15.0/bin/clang-format",
    "clangd.path": "/usr/bin/clangd",
    // Python
    "[python]": {
        "files.trimTrailingWhitespace": false,
        "files.insertFinalNewline": true,
        "files.trimFinalNewlines": true,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.insertSpaces": false,
        "editor.tabSize": 4,
        "editor.detectIndentation": true,
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true
    },
    "python.languageServer": "Microsoft",
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": true,
    "python.linting.pylintUseMinimalCheckers": true,
    "python.linting.pylintPath": "/usr/bin/pylint",
    "python.linting.pylintArgs": [],
    "python.formatting.provider": "yapf",
    "python.formatting.yapfArgs": [],
    "python.formatting.yapfPath": "/usr/bin/yapf3",
    "python.jediEnabled": false,
    // Html
    "[html]": {
        "editor.defaultFormatter": "vscode.html-language-features"
    },
    "html.format.indentInnerHtml": true,
    "emmet.triggerExpansionOnTab": true,
    "emmet.showSuggestionsAsSnippets": true,
    "emmet.showExpandedAbbreviation": "never",
    "emmet.excludeLanguages": [],
    "emmet.includeLanguages": {
        "markdown": "html"
    },
    // Markdown
    "[markdown]": {
        "files.trimTrailingWhitespace": false,
        "editor.trimAutoWhitespace": false,
        "editor.renderWhitespace": "all",
        "editor.detectIndentation": false,
        "editor.insertSpaces": true,
        "editor.tabSize": 2, //4
        "editor.quickSuggestions": true,
        "editor.snippetSuggestions": "top",
        "editor.formatOnPaste": true,
        "editor.formatOnType": true,
        "editor.formatOnSave": true,
        "editor.wordWrap": "off",
        "editor.acceptSuggestionOnEnter": "on",
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    },
    "markdown.preview.breaks": false,
    "markdown.preview.fontSize": 16,
    "markdown.extension.print.absoluteImgPath": false,
    "markdown.extension.print.includeVscodeStylesheets": false,
    "markdown.extension.tableFormatter.enabled": false,
    "markdown.extension.print.validateUrls": false,
    "markdown.extension.toc.downcaseLink": false,
    "markdown.extension.syntax.decorations": false,
    "markdown.extension.italic.indicator": "_",
    "markdown.extension.tableFormatter.normalizeIndentation": true,
    "markdown.extension.toc.updateOnSave": false,
    "markdownShortcuts.icons.italic": false,
    "markdownShortcuts.bullets.marker": "-",
    "markdownShortcuts.icons.bold": false,
    "markdownlint.run": "onSave",
    "markdownlint.config": {
        "MD002": false,
        "MD003": false,
        "MD004": false,
        "MD007": {
            "indent": 2 //4
        },
        "MD009": false,
        "MD010": false,
        "MD013": false,
        "MD014": false,
        "MD024": {
            "siblings_only": true
        },
        "MD025": false,
        "MD026": {
            "punctuation": ".,;:!"
        },
        "MD029": {
            "style": "ordered"
        },
        "MD030": false,
        "MD033": false,
        "MD038": false,
        "MD040": false,
        "MD041": false,
        "MD045": true
    },
    "markdownShortcuts.icons.bullets": false,
    "markdownShortcuts.icons.image": false,
    "markdownShortcuts.icons.link": false,
    "markdownShortcuts.icons.strikethrough": false,
    "prettier.singleQuote": true,
    "prettier.prettierPath": "/Users/lamyergeier/opt/.nvm/versions/node/v16.15.0/bin/prettier",
    // Latex
    "latex-workshop.view.pdf.viewer": "external",
    "latex-workshop.latex.outDir": "../Output",
    "latex-workshop.latex.autoClean.run": "onBuilt",
    "latex-workshop.latex.autoBuild.run": "onFileChange",
    "latex-workshop.synctex.afterBuild.enabled": true,
    // Matlab
    "matlab.matlabpath": "/usr/local/MATLAB/R2018a/bin/matlab",
    "matlab.mlintpath": "/usr/local/MATLAB/R2018a/bin/glnxa64/mlint",
    // Kubernetes
    "vs-kubernetes": {
        "vs-kubernetes.kubectl-path": "/Users/lamyergeier/.vs-kubernetes/tools/kubectl/kubectl",
        "vs-kubernetes.helm-path": "/Users/lamyergeier/.vs-kubernetes/tools/helm/linux-amd64/helm",
        "vs-kubernetes.draft-path": "/Users/lamyergeier/.vs-kubernetes/tools/draft/linux-amd64/draft"
    },
    // Docker
    "docker-explorer.showSuggestedDockerImages": false,
    "docker-explorer.showAzureRegistries": false,
    "docker-explorer.enableTelemetry": false,
    "docker-explorer.showDockerHubTreeView": false,
    // Julia
    "julia.enableTelemetry": false,
    "julia.enableCrashReporter": false,
    // Enables path autocompletion outside strings.
    "path-autocomplete.triggerOutsideStrings": true,
    // Coderunner
    "code-runner.enableAppInsights": false,
    "code-runner.runInTerminal": true, //false, //
    "code-runner.clearPreviousOutput": true,
    "code-runner.ignoreSelection": true,
    "code-runner.saveFileBeforeRun": true,
    "code-runner.executorMapByFileExtension": {
        ".sh": "TERM=xterm && cd $dirWithoutTrailingSlash && bash ./$fileName",
        ".mk": "cd $dirWithoutTrailingSlash &&  make all -f $fileName",
        "Makefile": "cd  $dirWithoutTrailingSlash && make",
        ".ipynb": " clear && mkdir -p $dir\"iNotebook\" && cd \"$_\" && if [ -d \"../Image\" ]; then cp -fr -v -t . \"../Image\"; fi && cp -r -v -t . ../$fileName  /Users/lamyergeier/Documents/Git/Python/Python3/Jupyter/Make/* && if [ -e \"$fileNameWithoutExt.md\" ]; then rm -f \"$fileNameWithoutExt.md\"; fi && if [ -e \"$fileNameWithoutExt.gen.html\" ]; then rm -f \"$fileNameWithoutExt.gen.html\"; fi && make SOURCE=$fileName",
        ".html": "firefox $fullFileName ",
        ".htm": "firefox $fullFileName ",
        ".svg": "firefox $fullFileName ",
        ".gen.pdf": "evince $fullFileName",
        ".pdf": "evince $fullFileName",
        ".py": "cd $dir && python $fileName"
    },
    "code-runner.fileDirectoryAsCwd": true,
    "code-runner.showRunIconInEditorTitleMenu": false,
    "code-runner.languageIdToFileExtensionMap": {
        "html": ".gen.html",
        "rmd": ".md",
        "typescript": ".ts"
    },
    // Paste Image
    "pasteImage.path": "${currentFileDir}/Image",
    "pasteImage.defaultName": "YY-MM-DD_HH-mm-ss",
    "pasteImage.namePrefix": "Image_",
    "gutterpreview.sourceFolder": "Image",
    // Language Server
    "languageToolLinter.diagnosticSeverity": "information",
    "languageToolLinter.languageTool.disabledRules": "DASH_RULE,EN_QUOTES",
    "languageToolLinter.languageTool.language": "en-US",
    // Spell Check
    "spellright.suggestionsInHints": true,
    "spellright.language": [
        "en"
    ],
    "spellright.documentTypes": [
        "markdown",
        "latex",
        "plaintext"
    ],
    "spellright.ignoreFiles": [
        "**/.gitignore",
        "**/.spellignore",
        "**/package-lock.json",
        "**/node_modules/**",
        "**/vscode-extension/**",
        "**/.git/**",
        ".vscode",
        "typings"
    ],
    // Code Spell Checker
    "cSpell.maxNumberOfProblems": 1000,
    "cSpell.language": "en",
    "cSpell.logLevel": "Information",
    "cSpell.allowCompoundWords": true,
    "cSpell.ignorePaths": [
        "**/package-lock.json",
        "**/node_modules/**",
        "**/vscode-extension/**",
        "**/.git/**",
        ".vscode",
        "typings",
        "**/.gitignore",
        "**/.spellignore"
    ],
    "cSpell.userWords": [
        "Agarwal",
        "Caltech",
        "Cryptoanalysis",
        "Cryptoanalyst's",
        "Cybersecurity",
        "Inode",
        "Makefiles",
        "Nikhil",
        "Noam",
        "POSIX",
        "Pandoc",
        "Pharming",
        "Sceptical",
        "Stackoverflow",
        "Submodule",
        "Submodule's",
        "Submodules",
        "Udacity",
        "Webapp",
        "Youtube",
        "ciphertext",
        "gitlab",
        "prepend",
        "preprocessors",
        "repo",
        "unstaged",
        "untracked"
    ],
    "cSpell.enabledLanguageIds": [
        "asciidoc",
        "c",
        "cpp",
        "csharp",
        "css",
        "go",
        "handlebars",
        "html",
        "jade",
        "javascript",
        "javascriptreact",
        "json",
        "latex",
        "less",
        "markdown",
        "php",
        "plaintext",
        "pub",
        "python",
        "restructuredtext",
        "rust",
        "scss",
        "text",
        "typescript",
        "typescriptreact",
        "yml"
    ],
    // Translation
    "translation.api": "google",
    "translation.fromLanguage": "zh-CN",
    "translation.targetLanguage": "enSet Preferred Language'",
    "vscodeGoogleTranslate.preferredLanguage": "English",
    // ToDo
    "todo-tree.defaultHighlight": {
        "foreground": "green",
        "type": "none"
    },
    "todo-tree.statusBar": "top three",
    "todo-tree.includeGlobs": [],
    "todo-tree.customHighlight": {
        "TODO": {},
        "FIXME": {}
    },
    "todohighlight.keywordsPattern": "~~.+?~~",
    "todohighlight.defaultStyle": {
        "color": "none",
        "backgroundColor": "none",
        "textDecoration": "line-through"
    }, // Refer [Markdown syntax highlighting for ~~text with strikethrough~~ and task-items · Issue #43504 · microsoft/vscode](https://github.com/microsoft/vscode/issues/43504)
    "openInApplication.applications": {
        "html": "wmctrl -s 2; /usr/bin/firefox",
        "md": "wmctrl -s 0; /Users/lamyergeier/bin/marktext-0.13.65-x86_64.AppImage",
        "pdf": [
            //"wmctrl -s 0; /usr/bin/zathura --mode fullscreen "
            //      "/usr/bin/firefox",
            //      "~/opt/foxitreader/FoxitReader",
            //      "/usr/bin/okular",
            "/snap/bin/evince"
        ],
        "webp": "wmctrl -s 0; /usr/bin/pinta",
        "png": "wmctrl -s 0; /usr/bin/pinta",
        "svg": "wmctrl -s 2; /usr/bin/firefox",
        "csv": "wmctrl -s 0; libreoffice --calc",
        "odt": "wmctrl -s 0; libreoffice --writer",
        "mkv": "wmctrl -s 0; mpv",
        "mp4": "wmctrl -s 0; mpv",
        "mp3": "wmctrl -s 0; mpv",
        "webm": "wmctrl -s 0; mpv"
    },
    "redhat.telemetry.enabled": false,
    "diffEditor.ignoreTrimWhitespace": false,
    "prettier.enable": false,
    "window.titleBarStyle": "custom",
    "terminal.integrated.enableMultiLinePasteWarning": false,
    "editor.multiCursorModifier": "ctrlCmd",
    "workbench.editorAssociations": {
        "*.txt": "default"
    },
    "editor.accessibilitySupport": "off",
    "extensions.autoCheckUpdates": false,
    "shfmt.executablePath": "/usr/local/bin/shfmt"
    ///////////////////////////////////////
}
Abrifq commented 2 years ago

@lamyergeler can you try the workspace in https://github.com/microsoft/vscode/issues/140185#issuecomment-1098007660 ? your settings.json have "editor.multiCursorModifier": "ctrlCmd" so it should make command+click multi cursor and option+click for opening links

lamyergeier commented 2 years ago

@Tyriar @Abrifq Tested your workspace. It works successfully as you mentioned, but thats not my issue. The behavior changed with VSCODE version 1.63.1 and 1.63.2.

I am not talking about reference links when you click the reference at the bottom. But I am talking about the reference at the top itself!


In https://raw.githubusercontent.com/Abrifq/test-vscode-repo/main/index.md with version 1.63.1 one could click: [this link][goes to relTest1] and the editor would scroll to the bottom at the reference. This stopped in 1.63.2

n-pn commented 1 year ago

Hi, alt+click does not work because by default Linux Mint use alt + LClick to move windows around, disable that (or change that to super + LClick) and alt click will work again.

Tyriar commented 1 year ago

I don't think we're going to move on this until proper mouse customization exists in vscode which is tracked in https://github.com/microsoft/vscode/issues/3130, simply changing it to work ctrl+click will break column selection and we should not bind super. Please up vote that issue as that's a signal we use in prioritization.