Search This Blog

Showing posts with label editor. Show all posts
Showing posts with label editor. Show all posts

Monday, March 2, 2020

VSCode Visual Basic Code - Editor Custom Command Settings

1. Create/Import your project in VSCode editor
2. There you can see .vscode folder is created under your root folder, else create a folder .vscode 
3. Create keybindings.json, tasks.json and paste the below code and customize it.
4. Use the shortcut key mentioned in keybindings.json for ex: Ctrl+M
5. All your targets is displayed in the View
6. Select and see that is executing in the terminal window.


keybindings.json

{
    "key": "ctrl+r+t",
    "command": "workbench.action.tasks.runTask",
    "args": "Run tests"
}

tasks.json

{ 
    //https://code.visualstudio.com/docs/editor/tasks#vscode
    "version": "2.0.0",
    "tasks": [
        {
            "label": "CodeQuality : Folder",
            "type": "shell",
            "command": "java -jar -Dfiles=\"d:/D:/drvijay/\" D:/works/app-0.1.jar"         
        },
        {
            "label": "CodeQuality : Excludes",
            "type": "shell",
            "command": "java -jar -Dfiles=\"d:/D:/drvijay/\" -Dexcludes=\"HCC,FCLC\"  D:/works/app-0.1.jar"         
        },
        {
            "label": "CodeQuality : Merge",
            "type": "shell",
            "command": "java -jar -Dfiles=\"d:/D:/drvijay/\" -Dmerge=\"d:/Test.properties\" D:/works/app-0.1.jar"         
        },
        {
            "label": "CodeQuality : Report",
            "type": "shell",
            "command": "java -jar -Dfiles=\"d:/D:/drvijay/Test.java\" -Doutputdir=\"D:/reportfolder/\" D:/works/app-0.1.jar"         
        }
    ]
}

See the screenshot






Sunday, March 1, 2020

Eclipse Maven - Change Default version

1. Add your external maven
2. Change that version while run -> install configurations

enter image description here




enter image description here



enter image description here




enter image description here

Thursday, August 8, 2019

AngularJS setup in Linux

1. Remove the older NPM / NODE / NG modules
    sudo apt purge ng-common ng-latin
    sudo apt purge node
    sudo apt purge npm
    sudo apt-get update

2. Install new version
     curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash - sudo 
OR
     curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash
      apt-get install -y nodejs
OR
     sudo apt-get update  
     apt-cache policy nodejs  
     sudo apt install nodejs
     sudo npm install -g @angular/cli

   npm --version
   node --version

3. Go to your folder
    npm install

4. type
    ng serve --host=ip

 OR to run in background
    nohup ng serve --host=ip &


RUN = http://ip:4200

Hit Counter


View My Stats