Posts

Showing posts with the label visual-studio-code

Change location that VS Code terminal is using

Change location that VS Code terminal is using for some reason my VS Code terminal is based in some random folder, and I have to use an extension to refer to my folder every time I use it. Any settings I can change to make the terminal refer to a different folder? 1 Answer 1 If you open a folder, the terminal should open at the root of that folder. So there might be a misconfiguration somewhere. But if you want to specify a folder: // An explicit start path where the terminal will be launched, this is used as the // current working directory (cwd) for the shell process. This may be particularly // useful in workspace settings if the root directory is not a convenient cwd. "terminal.integrated.cwd": "", Thanks for the reply, I tried this, but once I change it I cannot use the terminal, is this the correct usage? - "terminal.integrated.cwd": ...

VSCode regex find and select data from specific group (not replace)

VSCode regex find and select data from specific group (not replace) Consider the following dataset: <uses-configuration android:reqFiveWayNav=["true" | "false"] android:reqHardKeyboard=["true" | "false"] android:reqKeyboardType=["undefined" | "nokeys" | "qwerty" | "twelvekey"] android:reqNavigation=["undefined" | "nonav" | "dpad" | "trackball" | "wheel"] android:reqTouchScreen=["undefined" | "notouch" | "stylus" | "finger"] /> I am trying to select all the values after android: In order to do this, i am using (aw+:)(w+) which does exactly what i want. I know that I can use the search and replace and use $2 to select the second group, but I dont want to replace anythin. I want to select anything the second group matches with alt+enter key press. android: (aw+:)(w+) $2 alt+enter Is this possible? ...

Line Notes for VSCode

Line Notes for VSCode Is there any way by which I can add a useful message to a line in VS Code Editor which is not written in code but is like a note (Similar to like comments on a line in a Pull Request in Git) which can be deleted later on. 2 Answers 2 Comments can be added to code based on what language you are using. They are not specfic to the editor for the most part. For example, in C++ you can comment by putting double slashes before the line such as // Random Comment . // Random Comment Look up the commenting syntax for whatever code language you are using. I didn't mean comment in code but I mean short message added to a particular line (like notes at that line). – Anushi Maheshwari Jul 1 at 21:16 Why would you ...